github rectorphp/rector 2.2.7
Released Rector 2.2.7

23 hours ago

New Features 🥳

  • [type-declaration] Add ReturnIteratorInDataProviderRector (#7593)
  • [type-declarations] Add TypedStaticPropertyInBehatContextRector (#7596)
  • [DeadCode] Register RemoveNullArgOnNullDefaultParamRector to dead code set (#7597)
  • [php 8.5] Split of nested functions calls to pipe operator in a new standalone rule (#7603)

Bugfixes 🐛

  • always add nullable on TypedPropertyFromJMSSerializerAttributeTypeRector as serializer does not use constructor (#7599)
  • [Php81] Skip callable param union on FunctionLikeToFirstClassCallableRector (#7589)
  • [CodeQuality] Skip ArrayDimFetch with BitwiseXor on CombinedAssignRector (#7590)
  • [Php84] Skip variable extraction with return early on ForeachToArrayAllRector (#7591)
  • [PHP 8.5] rename NestedToPipeOeratorRector to SequentialAssignmentsToPipeOperatorRector, handle only assigns, not nested calls (#7588)
  • [Php81] Skip as Arg of non-native function call on FunctionLikeToFirstClassCallableRector (#7592)
  • skip different args passed to call-like and required by arrow function in FunctionLikeToFirstClassCallableRector (#7594)
  • handle public properties in TypedPropertyFromJMSSerializerAttributeTypeRector as nullable (#7595)
  • skip to many in /TypedPropertyFromJMSSerializerAttributeTypeRector (#7598)
  • skip refernce one as well in /TypedPropertyFromJMSSerializerAttributeTypeRector (rectorphp/rector-src@842aa94)
  • split TypedPropertyFromJMSSerializerAttributeTypeRector to scalar and object types (#7602)
  • Don't require parentheses for short-ternaries (#7604), Thanks @martinstuecklschwaiger!

rectorphp/rector-symfony 🎵

  • [Configs] Skip first class callable on RemoveConstructorAutowireServiceRector (#858)

rectorphp/rector-phpunit 🟢

  • [depre] Deprecate SetUpBeforeClassToSetUpRector as can break code easily (#567)

Don't miss a new rector release

NewReleases is sending notifications on new releases.