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

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

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

Rules Registered in sets :partying_face:

Couple long-existing rules were added to PHP 8.1, code quality and type declaration sets after optional community testing :heavy_check_mark:
If you'll experience any undersired changes, let us know :+1:


Bugfixes :bug:

  • [fix] skip variadic param on ParamTypeByParentCallTypeRector (#7532)
  • [Php81][CodingStyle] Skip multi params on FunctionLikeToFirstClassCallableRector (#7537)
  • [Php81][CodingStyle] Skip callable param assign with signature multi params on FunctionLikeToFirstClassCallableRector (#7538)
  • Fix NullToStrictStringFuncCallArgRector with probabilistic check for plural array passed to function where array allowed (#7539)
  • [Php81][CodingStyle] Skip variadic not used on FunctionLikeToFirstClassCallableRector (#7540)
  • [Php81] Keep nullable param on NewInInitializerRector (#7545)
  • [php 8.1] skip nullable property without null default in NewInInitializerRector (#7546)


Removed and deprecated :skull:

  • [depre] Deprecate 3 configurable-only, never used closure param rules as too specific (#7541)
  • [depre] Deprecate RenameFunctionLikeParamWithinCallLikeArgRector as never used, too narrow and better suits custom project (#7544)
  • [depre] Deprecate AddTypeFromResourceDocblockRector as breaks code and does not solve any real problem (#7542)
  • [Php81] Completely remove AttributeGroupNewLiner (#7536)




rectorphp/rector-phpunit :green_circle:

  • [depre] Add never used AddCoversClassAttributeRector, as very opionated and requires very specific file location - use custom rule instead (#561)
  • Fix implicit PHP and PHPUnit version in RequiresAnnotationWithValueToAttributeRector (#560)
  • [code-quality] Add AssertArrayCastedObjectToAssertSameRector (#559)
Source: README.md, updated 2025-10-23