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

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

Home / 2.4.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md < 9 hours ago 3.1 kB
Released Rector 2.4.0 source code.tar.gz < 9 hours ago 2.0 MB
Released Rector 2.4.0 source code.zip < 9 hours ago 4.4 MB
Totals: 3 Items   6.5 MB 0

New Features :partying_face:

  • chore: add SafeDeclareStrictTypesRector to code quality set (#7935), Thanks @calebdw!
  • [Caching] Add CacheMetaExtensionInterface for custom cache invalidation (#7933), Thanks @ruudk!
  • feat(php86): add min/max to clamp rector (#7942), Thanks @calebdw!


Bugfixes :bug:

  • [Php85] Do not convert to pipe on use directly of spread operator on NestedFuncCallsToPipeOperatorRector (#7938)
  • [Console] Allow short command "p" on ProcessCommand (#7931)
  • [Arguments] Skip self class const fetch inside this class target replacement on ReplaceArgumentDefaultValueRector (#7940)
  • [CodeQuality] Hnadle with negation binary op previous if on CombineIfRector (#7945)
  • [CodingStyle] Skip by reference required params on call inside on ArrowFunctionDelegatingCallToFirstClassCallableRector (#7949)


Removed :skull:

  • [DeadCode] Skip pipe operator on RemoveDeadStmtRector (#7941)
  • [DeadCode] Handle crash on multi elseif on RemoveDeadIfBlockRector (#7946)
  • [DeadCode] Skip with assign to call with target has #[NoDiscard] attribute on RemoveUnusedVariableAssignRector (#7950)


rectorphp/rector-symfony :musical_note:

  • [CodeQuality] Handle different parameter type same name used on ControllerMethodInjectionToConstructorRector (#929)
  • [CodeQuality] Skip used by static closure use on ControllerMethodInjectionToConstructorRector (#928)
  • [Symfony61] Skip non static external class callable on MagicClosureTwigExtensionToNativeMethodsRector (#927), Thanks @wuchen90


rectorphp/rector-doctrine :orange_circle:

  • Fix infinite loop check instanceof name check to use Name class (#481)


rectorphp/rector-phpunit :green_circle:

  • [PHPunit 9] Move AssertRegExpRector to phpunit 90 set with refactor to use assertMatchesRegularExpression/assertDoesNotMatchRegularExpression (#667)
  • [PHPUnit 9] Rename assertRegExp/assertNotRegExp to assertMatchesRegularExpression/assertDoesNotMatchRegularExpression on phpunit 90 set (#666)
  • Fix assert PHPStan on ConfiguredMockEntityToSetterObjectRector (#665)
Source: README.md, updated 2026-04-04