Download Latest Version Released Rector 2.2.8 source code.tar.gz (2.0 MB)
Email in envelope

Get an email when there's a new version of Rector

Home / 2.2.7
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-29 2.9 kB
Released Rector 2.2.7 source code.tar.gz 2025-10-29 2.0 MB
Released Rector 2.2.7 source code.zip 2025-10-29 4.3 MB
Totals: 3 Items   6.3 MB 1

New Features :partying_face:

  • [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 :bug:

  • 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 (https://github.com/rectorphp/rector-src/commit/842aa94d34c976e61545c7768f828be0b17b1a35)
  • split TypedPropertyFromJMSSerializerAttributeTypeRector to scalar and object types (#7602)
  • Don't require parentheses for short-ternaries (#7604), Thanks @martinstuecklschwaiger!


rectorphp/rector-symfony :musical_note:

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


rectorphp/rector-phpunit :green_circle:

  • [depre] Deprecate SetUpBeforeClassToSetUpRector as can break code easily (#567)
Source: README.md, updated 2025-10-29