New Features and Improvements 🥳
- 20-30 % Rector speedup - Optimise checking the node types allowed for each rule (#6232), Thanks @carlos-granados!
- [docs] Add help on the default process command (#6226), Thanks @94noni!
- [TypeDeclaration] Adds
AddClosureParamTypeFromArgRector
(#6258) - Adds
AddClosureParamTypeFromObjectRector
(#6265), Thanks @peterfox! - [Config] Improve ComposerJsonPhpVersionResolver API, make use of explicit php set files (#6273)
- [FileSystem] Add data and writable to not include on InitFilePathsResolver (#6285)
- always make paths absolute before processing files (#6293), Thanks @Kanti!
Bugfixes 🐛
- [CodeQuality] Handle crash on first class callable inside match on OptionalParametersAfterRequiredRector (#6263)
- [ReturnTypeInferer] Drop this/static docblock type check on ReturnTypeInferer (#6270)
Removed 💀
- [deprecated] Remove deprecated ChangeAndIfToEarlyReturnRector, CallableThisArrayToAnonymousFunctionRector + casting rules (#6276)
- [deprecations] Remove deprecated GetClassToInstanceOfRector, UseIncrementAssignRector, DetectNodeCommand (#6278)
- [deprecated] Remove deprecated closure return rules, return type from strict bool/scalar returns (#6287)
rectorphp/rector-symfony 🎵
- Add Class_ annotation support to TemplateAnnotationToThisRenderRector (#666)
rectorphp/rector-doctrine 🟠
- Refactor the OrderByKeyToClassConstRector to use the new enum only in
Criteria::orderBy
method calls (#336), Thanks @julienfastre