packagist rector/rector 0.12.4
Released Rector 0.12.4

latest releases: dev-main, 1.04, 1.0.4...
2 years ago

New Features 🎉

  • [Downgrade PHP 7.0] Add DowngradeDirnameLevelsRector (#1209), Thanks @villfa!
  • [Downgrade PHP 5.4] Add DowngradeCallableTypeDeclarationRector (#1213), Thanks @villfa!
  • include doctrine odm classes to the exclude list (#1211), Thanks @bitgandtter!
  • [TypeDeclaration] Improve typed property (#1221)
  • [CodeQuality] Add DoWhileBreakFalseToIfElseRector (#1220)
  • [CodeQuality] Add do whlie rule to set (#1223)
  • [Downgrade PHP 5.6] Add DowngradeArgumentUnpackingRector (#1219), Thanks @villfa!
  • [PHP 8.1] Add NewInInitializerRector (#1224)
  • [Downgrade PHP 5.4] Add DowngradeInstanceMethodCallRector (#1225), Thanks @mallardduck!
  • [Naming] Add StaticPropertyFetch support on RenameForeachValueVariableToMatchExprVariableRector (#1232) (#1232), Thanks @samsonasik!
  • [PostRector][CodingStyle] Improve Auto import performance (#1233) (#1233), Thanks @samsonasik!
  • Add BOOTSTRAP_FILES hint to AutoloadExceptionMessage (#1236) (#1225), Thanks @mallardduck!
  • [PHP 8.1] Add IntersectionTypesRector (#1227) (#1227)

Bugfixes 🐛

  • [Php71] Skip property with array doc filled by __construct on CountOnNullRector (#1208), Thanks @samsonasik!
  • [NodeTypeResolver] Avoid error Uncaught TypeError: PHPStan\Type\Constant\ConstantIntegerType::__construct(): Argument #1 ($value) must be of type int, string given (#1210), Thanks @samsonasik!
  • [DeadCode] Do not remove parameter on RemoveUnusedPrivatePropertyRector on constructor only usage in the middle of parameter (#1212), Thanks @samsonasik!
  • [DeadCode] Skip RemoveUnusedPrivatePropertyRector on used in Assign expr (#1214), Thanks @samsonasik!
  • [TypeDeclaration] Skip conditional Throw_ on ReturnNeverTypeRector (#1217), Thanks @samsonasik!
  • [DeadCode] Skip clone and new self on RemoveUnusedPrivatePropertyRector (#1215), Thanks @samsonasik!
  • [DeadCode][TypeDeclaration] Handle Nullable Param on RemoveUnusedPrivateMethodParameterRector+RemoveUnreachableStatementRector+AddArrayParamDocTypeRector (#1216), Thanks @samsonasik!
  • fix: ignore specified words while making it singularized (#1222), Thanks @ishanvyas22!
  • [Php71] Skip with If always array on CountOnNullRector (#1229) (#1229), Thanks @samsonasik!
  • [Php80] Fix InverseJoinColumn Annotation to Attribute on AnnotationToAttributeRector (#1231) (#1231), Thanks @samsonasik!
  • [TypeDeclaration] Avoid error Rector\Core\Rector\AbstractRector::isObjectType() must implement interface PhpParser\Node, null given on AddParamTypeDeclarationRector (#1239) (#1239), Thanks @samsonasik!
  • [Php56] Skip AddDefaultValueForUndefinedVariableRector as coalesce left (#1238) (#1238), Thanks @samsonasik!
  • [Renaming] Handle error on RenameClassRector when method return static (#1243) (#1243), Thanks @samsonasik!
  • [Php74] Handle nested closure on ClosureToArrowFunctionRector (#1245) (#1245), Thanks @samsonasik!

Removed 💀

  • [NodeTypeResolver] Remove deprecated NodeTypeResolver getStaticType method (#1230) (#1230), Thanks @samsonasik!

Don't miss a new rector release

NewReleases is sending notifications on new releases.