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

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

Home / 2.1.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-07-10 5.9 kB
Released Rector 2.1.1 source code.tar.gz 2025-07-10 1.8 MB
Released Rector 2.1.1 source code.zip 2025-07-10 4.0 MB
Totals: 3 Items   5.8 MB 0

New Features :partying_face:

  • [Php84] Add message name on multilines on DeprecatedAnnotationToDeprecatedAttributeRector (#7030)
  • Add SortNamedParamRector (#7047), Thanks @VincentLanglet!


Bugfixes :bug:

  • [CodeQuality] Properly handle Goto_ on ExplicitReturnNullRector (#7018)
  • [Php84] Skip non-array on ForeachToArray* rules (#7023)
  • [Console] Handle hidden "process" with --option without = on ConsoleApplication (#7022)
  • [Php80] Handle with property hook on ClassPropertyAssignToConstructorPromotionRector (#7024)
  • [Scoped] Exclude DateRangeError on Scoper for prefixing (#7027)
  • [Php84] Handle multi lines text on DeprecatedAnnotationToDeprecatedAttributeRector (#7028)
  • [Php55] Avoid $scope = ScopeFetcher::fetch($node); when not needed on GetCalledClassToStaticClassRector (#7029)
  • Fix crash on ExactCompareFactory::createBooleanAnd/Or (#7031)
  • Move ScopeFetcher::fetch() to near its usage (#7032)
  • [CodeQuality][Php84] Handle crash on ForeachToArrayFindRector+OptionalParametersAfterRequiredRector (#7033)
  • [Php84] Skip foreach value used after foreach on ForeachToArray* rules (#7034)
  • [Php84] Handle key used on conditional on ForeachToArray* rules (#7035)
  • [code-quality] Make ctor defined dynamic properties private, as most probably case (#7036)
  • [PostRector] Keep first comment after declare(strict_types=1) on UnusedImportRemovingPostRector (#7042)
  • [Php80] Make configurable to allow skip on model based classes on ClassPropertyAssignToConstructorPromotionRector (#7043)
  • [Kaizen] Save kaizen applied rules into cache to make works on parallel (#7046)
  • [Kaizen] No need filter unchanged files when --kaizen is used (#7050)
  • [Kaizen] When no files changed, early return empty on FilesFinder, even on kaizen (#7051)
  • [Kaizen] Enforce clear cache when there is files changed + kaizen enabled (#7052)
  • Fix ambiguous variable name (#7053)
  • [Php84] Handle with space on message like class name constant on DeprecatedAnnotationToDeprecatedAttributeRector (#7056)
  • [CodeQuality] LogicalToBooleanRector should add parentheses on equal (#7048)
  • [Kaizen] Remove unneeded clean kaizen cache since all cache cleared early when there are files to be changed + kaizen enabled (#7054)




rectorphp/rector-symfony :musical_note:

  • Fix code style issues (#810), Thanks @mttsch
  • [Symfony 74] Rename Application::add() to Application::addCommand() (#809), Thanks @mttsch
  • Fix links to Symfony 7.2/7.3 upgrade documents (#808), Thanks @mttsch
  • [Symfony 7.3] Handle existing named array arguments in ConstraintOptionsToNamedArgumentsRector (#807), Thanks @gharlan
  • [Symfony 73] add ConstraintOptionsToNamedArgumentsRector (#806), Thanks @pedrocasado
  • Twig attributes: make methods public (#805), Thanks @gharlan
  • AddVoteArgumentToVoteOnAttributeRector (#804), Thanks @tugmaks
  • [CodeQuality] Skip first class callable on StringCastDebugResponseRector (#803)
  • [code-quality] Add StringCastDebugResponseRector (#802)
  • add casting to string to AssertSameResponseCodeWithDebugContentsRector as response can be null, and message requires string (#801)


rectorphp/rector-doctrine :orange_circle:

  • [dbal 3.8] Add MigrateQueryBuilderResetQueryPartRector (#455), Thanks @simonschaufi


rectorphp/rector-phpunit :green_circle:

  • feat: make AddCoversClassAttributeRector configurable (#502), Thanks @canvural
  • Support PHPUnit 12 in composer based set (#501), Thanks @alleknalle
  • [Attribute] Handle comment below @dataProvider doc on DataProviderAnnotationToAttributeRector (#500)
  • [code-quality] Add StringCastAssertStringContainsStringRector (#498)
Source: README.md, updated 2025-07-10