New Features 🥳
- Add rector/rector-php-parser - https://github.com/rectorphp/rector-php-parser
Bugfixes 🐛
- [Down_To_PHP71] Handle both parent and child typed for trailing comma downgrade on DowngradeLevelSetList::DOWN_TO_PHP_71 (#2910)
- [PHP 8.1] Do not process static methods from Enum class (#2911)
- [PHP 7.4] Fix literator separator string/int missmatch in PHPStan type (#2913)
- [Doctrine] Handle Partial removal annotation has annotation below on RemoveRedundantDefaultPropertyAnnotationValuesRector (#2914)
- [DeadCode] Handle assign empty array on if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2917)
- [DeadCode] Skip assign if cond on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2918)
- Skip first class callables in NullToStrictStringFuncCallArgRector (#2919), Thanks @thomasschiet!
- [Skipper] Handle provide direct relative path in Skipper (#2921)
- Fix VarAnnotationIncorrectNullableRector, add support for closure params when generating php doc (#2922), Thanks @dorrogeray!
- [CodingStyle] Skip has non-printable chars on SymplifyQuoteEscapeRector (#2926)
- [Php80] Handle crash on Nested Annotation to Attribute setting PhpVersion::PHP_80 (initializer - 1) (#2929)
- [Visibility] Does not turn abstraction into static from implicit public abstractions in ExplicitPublicClassMethodRector (#7483) (#2930), Thanks @Goral64!
- [Php55] Allow alias name on StringClassNameToClassConstantRector (#2931)
- [TypeDeclaration] Add AddArrowFunctionReturnTypeRector (#2933)
- [DeadCode] Skip nullable array on not empty on RemoveUnusedNonEmptyArrayBeforeForeachRector (#2935)
- [AutoImport] Allow auto import to use existing alias in use statement (#2937)
- Skip properties with default values for MakeTypedPropertyNullableIfCheckedRector (#2936), Thanks @Wohlie!
- [AutoImport] Add GroupUse support on auto import (#2939)
- [AutoImport] Skip multiple namespaces on single file on auto imports (#2940)
- Skip method of abstract class for StaticCallOnNonStaticToInstanceCallRector. (#2938), Thanks @Wohlie!
- Skip magic methods for StaticCallOnNonStaticToInstanceCallRector. (#2941), Thanks @Wohlie!
- Add refactorings for ...val() (#2942), Thanks @Wohlie!
- [DeadCode] Handle crash on RemoveUnusedPrivatePropertyRector+RemoveJustPropertyFetchForAssignRector (#2943)
- Fix type error on downgraded version. (#2946), Thanks @Wohlie!
- [TypeDeclaration] Skip intersection array on ReturnTypeDeclarationRector on PHP 8.1 feature enabled (#2948)
- [Php56] Skip after exit() on AddDefaultValueForUndefinedVariableRector (#2949)
- ParamAnalyzer: Accept all FunctionLike (#2945), Thanks @jtojnar!