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

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

Home / 2.2.4
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-10-22 2.8 kB
Released Rector 2.2.4 source code.tar.gz 2025-10-22 2.0 MB
Released Rector 2.2.4 source code.zip 2025-10-22 4.3 MB
Totals: 3 Items   6.3 MB 0

New Features :partying_face:

  • [code-quality] Add RepeatedAndNotEqualToNotInArrayRector (#7517)
  • [code-quality] Add ReplaceConstantBooleanNotRector (#7527)
  • [code-quality] Add VariableConstFetchToClassConstFetchRector (#7457)
  • [coding-style] Add BinaryOpStandaloneAssignsToDirectRector (#7466)


Bugfixes :bug:

  • Fix autoload preload on PHPUnit 12+ on global installation (#7468) (#7472) (#7475)
  • [TypeDeclaration] Skip override from parent method on AddParamStringTypeFromSprintfUseRector (#7479)
  • Run PHPUnit 12 and PHPStan compatibilty check (#7455)
  • [TypeDeclarationDocblocks] Handle repeated item type on DocblockReturnArrayFromDirectArrayInstanceRector (#7459)
  • [BetterPhpDocParser] Unique handling string on BracketsAwareUnionTypeNode (#7462)
  • [CodeQuality] Skip non-variable fetch on VariableConstFetchToClassConstFetchRector as may cause side effect (#7464)
  • [CodingStyle] Skip any CallLike with args !== [] on BinaryOpStandaloneAssignsToDirectRector (#7469)
  • [CodingStyle] Skip compare binary op on BinaryOpStandaloneAssignsToDirectRector (#7470)
  • [CodingStyle] Skip by ref params on BinaryOpStandaloneAssignsToDirectRector (#7471)


Removed and deprecated :skull:

  • [deprecated] Deprecate strict-types rules as risky and not practical (#7523)
  • [DeadCode] Skip vars exists in static vars on RemoveNonExistingVarAnnotationRector (#7463)
  • [autoload] Remove PHPUnit version 12 check on preload.php load (#7474)
  • [Removal] Remove --kaizen option, as it might jump right to risky rules, use levels instead (#7478)

rectorphp/rector-phpunit

  • Fix argument.type PHPStan errors (#553), Thanks @staabm
Source: README.md, updated 2025-10-22