New Features 🥳
- [CodingStyle] Split SplitGroupedConstantsAndPropertiesRector to SplitGroupedClassConstantsRector and SplitGroupedPropertiesRector (#3158)
- Add compatible phpstan/phpdoc-parser 0.15 (#3157)
Bugfixes 🐛
- Skip short class names in UseClassKeywordForClassNameResolutionRector (#3156)
- [Core] Fix crash indentation on indent(\t, 1) config (#3155)
- [TypeDeclaration] Skip union mixed on TypedPropertyFromAssignsRector (#3160)
- [TypeDeclaration] Handle Anonymous class extends existing class in union (#3161)
- Add skipped Rectors to
list-rules
(#3162) - [TypeDeclaration] Remove PhpDocTypeChanger->changeVarType() on TypedPropertyFromAssignsRector (#3163)
- [TypeDeclaration] Skip multi return types on ReturnTypeFromReturnDirectArrayRector (#3164)
- [CodeQuality] Skip stdClass in IssetOnPropertyObjectToPropertyExistsRector, as always nested (#3166)
- Do not apply property promotion to parameters with the SensitiveParameter attribute (#3165), Thanks @mbabker!
- [TypeDeclaration] Skip void return on AddArrowFunctionReturnTypeRector (#3167)
- [Php82] Skip ReadOnlyClassRector on has parent non-readonly class (#3169), Thanks @Yoann-TYT!
- [CodeQuality] Handle BooleanNot on SimplifyEmptyCheckOnEmptyArrayRector (#3170)
- [Core] Use FullyQualifiedObjectType and ThisType detection for local property fetch on PropertyFetchAnalyzer (#3172)
- [CodeQuality] Skip non typed property no default value never assigned on SimplifyEmptyCheckOnEmptyArrayRector (#3171)
- [PHPStanStaticTypeMapper] Handle Nullable Type on UnionType on UnionTypeMapper when possible (#3173)
- [CodeQuality][CodingStyle] Handle crash on SimplifyIfReturnBoolRector+NewlineAfterStatementRector+StringClassNameToClassConstantRector (#3175)
- [DeadCode] Skip Class Constant used in Enum on RemoveUnusedPrivateCla… (#3174), Thanks @eliashaeussler!
- [Php80] Do not remove Parameter attribute on ClassPropertyAssignToConstructorPromotionRector (#3179)
- [PHP 8.1] Skip trait in NullToStrictStringFuncCallArgRector as unknown context (#3180)
- Fix trait property visibility in PrivatizeFinalClassPropertyRector (#3182)
- [Php81] Allow normal variable in trait on NullToStrictStringFuncCallArgRector (#3181)