Skip to content

Released Rector 0.12.14

Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 25 Jan 19:36
· 4397 commits to main since this release

New Features 馃帀

  • Add --memory-limit option to pass memory limit to parallel subprocesses (#1726)
  • Add option to configure followLinks of finder (#1703), Thanks @sabbelasichon!

Bugfixes 馃悰

  • [Php71] Skip iterable on CountOnNullRector (#1691), #6947, Thanks @samsonasik!
  • [Privatization] Skip ChangeReadOnlyVariableWithDefaultValueToConstantRector when local variable never used (#1693), Thanks @samsonasik!
  • Do not run ChangeReadOnlyPropertyWithDefaultValueToConstantRector on properties with attributes (#1694), Thanks @simPod!
  • [Php70] Do not take side effect on IfToSpaceshipRector (#1696), Thanks @samsonasik!
  • [Php71] Skip property fetch array assigned in method call on __construct on CountOnNullRector (#1698), Thanks @samsonasik!
  • [Php56] Skip AddDefaultValueForUndefinedVariableRector on empty() check (#1697), Thanks @samsonasik!
  • [CodingStyle] Handle more than one method contains try catch on CatchExceptionNameMatchingTypeRector (#1706), Thanks @samsonasik!
  • [Php74] Skip curly variable in string quoted on CurlyToSquareBracketArrayStringRector (#1707), Thanks @samsonasik!
  • [Php80] Handle AnnotationToAttributeRector + ClassPropertyAssignToConstructorPromotionRector (#1712), Thanks @samsonasik!
  • [DowngradePhp70][Transform] Add #[\ReturnTypeWillChange] on Downgrade + transform ArrayObject::getIterator() to keep working on php 8.1 (#1711), Thanks @samsonasik!
  • [CodeQuality][EarlyReturn] Handle SimplifyIfElseToTernaryRector + ChangeIfElseValueAssignToEarlyReturnRector (#1710), Thanks @samsonasik!
  • [Php74] Skip readonly on RestoreDefaultNullToNullableTypePropertyRector (#1713), Thanks @samsonasik!
  • [DeadCode] Handle RemoveUnusedConstructorParamRector + RemoveUnusedPrivatePropertyRector (#1714), Thanks @samsonasik!
  • [Naming][Php56] Do not add default value init for renamed variable from param on RenameParamToMatchTypeRector+AddDefaultValueForUndefinedVariableRector (#1716), Thanks @samsonasik!
  • [Php80] Do not remove true pseudo type on UnionTypesRector (#1715), Thanks @samsonasik!
  • [Downgrade 7.0] Strip unnecessary parentheses around expressions (#1617), Thanks @jtojnar!
  • [DeadCode] Allow unused private property on Doctrine and JMS Serializable attribute on RemoveUnusedPrivatePropertyRector (#1718), Thanks @samsonasik!
  • [DowngradePhp72] Add DowngradeJsonDecodeNullAssociativeArgRector (#1723), Thanks @samsonasik!
  • [DowngradePhp72] Fix downgrade json null as true for DowngradeJsonDecodeNullAssociativeArgRector (#1724), Thanks @samsonasik!
  • [TypeDeclaration] Skip Prevent object in intersection type on ReturnTypeDeclarationRector (#1727), Thanks @samsonasik!