This release contains important fix for Rector custom rules running on PHPUnit 12.2+ ✔️
PHPUnit started to preload it's own php-parser
version, that conflicts with Rector's one. Now we preload our side first again. Your tests shall run 👍 If not: let us know in: #9416
New Features 🥳
- [tdd] Add
AddParamArrayDocblockBasedOnArrayMapRector
(#7435) - [Php85] Add
ShellExecFunctionCallOverBackticksRector
(#7445)
Bugfixes 🐛
- [Scoped] Load early preload.php on scoped bootstrap.php on phpunit 12+ running (#7451)
- [autoload] Fix phpstan + rector tests co-run to avoid duplicated php-parser loading error (#7440)
- [Php80] Skip inside by ref method on ChangeSwitchToMatchRector (#7443)
- [Renaming] Allow self/static on RenamePropertyRector (#7444)
- Directly check type of substr() on RecastingRemovalRector (#7446)
- [fix] Skip symfony config closures on FirstClassCallableRector as they do not support first class callables (#7447)
- [DeadCode] Skip ClassLikeNameClassNameImportSkipVoter for RecastingRemovalRector (#7448)
- [dead-code] Skip substr casting removal on PHP 7.x, as can return false|string (#7449)
- [Php74] Skip used in compact on ClosureArrowFunctionAnalyzer (#7453)
- [TypeDeclarationDocblocks] Fix missing backslash on class-string type on DocblockGetterReturnArrayFromPropertyDocblockVarRector (#7454)