1.2.7
版本发布时间: 2024-10-12 19:27:25
rectorphp/rector最新发布版本:2.0.6(2025-01-06 18:48:03)
New Features :partying_face:
- Apply AddOverrideAttributeToOverriddenMethodsRector to traits (#6367), Thanks @jrjohnson!
- [Transform] MethodCall to New (#6352), Thanks @peterfox!
- Add RemoveTypedPropertyNonMockDocblockRector (#6306)
- [DX] Add links to open the editor to the names of processed files and the names of rules applied (#6272), Thanks @carlos-granados!
Bugfixes :bug:
- Fixed --memory-limit=-1 option handling when used in parallel (#6349), Thanks @ddegasperi!
- [Php70] Fix delimiter in the middle on EregToPregMatchRector (#6356)
- [Php70] More delimiter case in the middle fix on EregToPregMatchRector (#6357)
- [Php80] Cast string/int for int vs string condition and case condition on ChangeSwitchToMatchRector (#6359)
- [DeadCode] Skip from call with return docblock on ReduceAlwaysFalseIfOrRector (#6361)
- [TypeDeclaration] Closure Param Types from Iterator Source (#6345), Thanks @peterfox!
- [Privatization] Allow privatize protected promoted property on PrivatizeFinalClassPropertyRector (#6360)
- [DeadCode] Skip with Else and ElseIf on SimplifyIfNotNullReturnRector (#6365)
- [Php70] Handle empty branch crash on unprintable char \x0C on EregToPregMatchRector (#6368)
- [UnusedImport] Different letter case for classes + optimization (#6362), Thanks @jorgsowa!
- [CodeQuality] Skip else indirect return on SimplifyIfReturnBoolRector (#6371)
- [CodeQuality] Clean up else check on SimplifyIfReturnBoolRector (#6372)
- [TypeDeclaration] Fix deep nested array docblock with \ prefix on ReturnTypeFromStrictNewArrayRector (#6373)
- [EarlyReturn] Skip nested with OR in root if statement condition on ChangeNestedForeachIfsToEarlyContinueRector (#6375)
- [DeadCode] Skip RemoveUnusedPrivatePropertyRector in middle assign (#6363)
Removed :skull:
- [NodeAnalyzer] Remove ClassAnalyzer::isAnonymousClassName() (#6351)
- [NodeAnalyzer] Remove unused AstResolver on VariadicAnalyzer (#6353)
- [DeadCode] Clean up double private method filtering on RemoveUnusedPrivateMethodRector (#6364)
- [DeadCode] Skip union docblock param with is_object() native type check on RemoveAlwaysTrueIfConditionRector (#6370)
rectorphp/rector-symfony :musical_note:
- [CodeQuality] Add AddTraitGetterReturnTypeBasedOnSetterRequiredRector (#671)
rectorphp/rector-phpunit :green_circle:
- [PHPUnit 10] Add ifs as default way for withConsecutive, as more readable and opens upgrade during PHPUnit 9 (#382)
- Use simple direct assert on consecutive in case of arrow function in callable (#381)
- Use more readable ifs on will return in WithConsecutiveRector (#380)
- add NarrowSingleWillReturnCallbackRector to code quality set (#379)