Skip to content

Released Rector 0.12.18

Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 20 Mar 23:07
· 4877 commits to main since this release

New Features 🎉

  • [TypeDeclaration] Add ArrayShapeFromConstantArrayReturnRector (#1908)
  • [Transform] Add type matching to MethodCallToPropertyFetchRector (#1905)
  • [Arguments] Add RemoveMethodCallParamRector (#1906)
  • [CodeQuality] Add InlineConstructorDefaultToPropertyRector (#1935)
  • Add StaticCall support to RemoveMethodCallParamRector (#1916)
  • [DX] simplify --debug output to the proccessed file path (#1933)

Bugfixes 🐛

  • [CodeQuality] Handle default value on CallableThisArrayToAnonymousFunctionRector (#1900), Thanks @samsonasik!
  • [TypeDeclaration] Skip ArrayShapeFromConstantArrayReturnRector on class name as key (#1911), Thanks @samsonasik!
  • [Php81] Skip override __construct from interface on NewInInitializerRector (#1913), Thanks @samsonasik!
  • [Arguments] Handle by pass 2nd argument default value on ArgumentAdderRector (#1946), Thanks @samsonasik!
  • [DeadCode] Handle used in anonymous class on RemoveUnusedConstructorParamRector (#1948), Thanks @samsonasik!
  • [Transform] Handle property exists via Property Promotion on NewToMethodCallRector (#1915), Thanks @samsonasik!
  • [Renaming] Apply rename fully qualified namespace docblock on RenameNamespaceRector (#1917), Thanks @samsonasik!
  • [CodingStyle] Handle Interface suffix on CatchExceptionNameMatchingTypeRector (#1918), Thanks @samsonasik!
  • [CodingStyle] Use alias name when exists on CatchExceptionNameMatchingTypeRector (#1920), Thanks @samsonasik!
  • Fix some minor misprints (#1922), Thanks @bocharsky-bw!
  • [Dep] Add PHPUnit\Framework\TestCase stub on target-repository bootstrap.php (#1924), Thanks @samsonasik!
  • [TypeDeclaration] Fix parent method param override (#1945)
  • [DeadCode][CodingStyle] Handle SplitDoubleAssignRector+RemoveUnusedPrivatePropertyRector (#1944), Thanks @samsonasik!
  • [Php81] Skip static property on ReadOnlyPropertyRector (#1939), Thanks @samsonasik!
  • [PHP 8.0] Fix skip of silent key in annotation to attribute (#1932)

Deprecations ⌛️

  • [MockeryToProphecy] Deprecate micro set as not practical (#1899)
  • [PhpSpecToPHPUnit] Deprecate historical set, mostly for experimental in early days (#1901)
  • Remove old PHPSpec 3 and 4 sets (#1902)
  • [Order] Deprecate rather coding standard related set, use OrderedClassElementsFixer instead (#1910)
  • [Transform] Remove AddInterfaceByParentRector as never used (#1935)
  • [DeadCode] Skip called by current classname on RemoveUnusedPrivateClassConstantRector (#1931), Thanks @samsonasik!