| Name | Modified | Size | Downloads / 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:
- register AddClosureParamTypeForArrayMapRector in type declaration level (https://github.com/rectorphp/rector-src/commit/68bb0cca86e28df97a3bca15f0f85836b7b87ea4)
- register AddClosureParamTypeForArrayReduceRector to type declaration level (https://github.com/rectorphp/rector-src/commit/38ecb98e65a29d6a774f93013a32cf8d8d4e482e)
- improve description (https://github.com/rectorphp/rector-src/commit/1ae7187546914988d394830b60c96b2178e4c4ad)
- add FunctionFirstClassCallableRector to PHP 8.1 set (https://github.com/rectorphp/rector-src/commit/0e18562ee6196eb3196169dd51a6dffac479ec60)
- register ReplaceConstantBooleanNotRector in code-quality level (https://github.com/rectorphp/rector-src/commit/e1640694bab2d29289c295e7875294e857cc2d01)
- register ClosureFromCallableToFirstClassCallableRector to PHP 8.1 set (https://github.com/rectorphp/rector-src/commit/d229205e5dbdf68c15d44a373203217368603361)
- register NewInInitializerRector in PHP 8.1 (#7545)
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)