github rectorphp/rector 2.0.16
Released Rector 2.0.16

latest releases: 2.1.6, 2.1.5, 2.1.4...
3 months ago

New Features 🥳

  • [dx] add symfonyRoute and symfonyValidator option to ->withAttributesSets() to ease upgrade (#6882)
  • [nette/utils] [4.0] Add upgrade set to handle named args in Json class (#6884)

Bugfixes 🐛

  • [TypeDeclaration] Skip __destruct() from add return type based on parent on AddReturnTypeDeclarationBasedOnParentClassMethodRector (#6883)
  • [CodeQuality] Skip with init non empty dynamic array on ForeachItemsAssignToEmptyArrayToAssignRector (#6881)
  • UseIdenticalOverEqualWithSameTypeRector should not trust phpdoc (#6880), Thanks @staabm!
  • [Php70] Handle class named Pool on Php4ConstructorRector (#6887)
  • [Php73] Handle key() called multiple times on ArrayKeyFirstLastRector (#6888)
  • Clean up repetitive recursive call and flag on ArrayKeyFirstLastRector (#6889)
  • [Config] Handle config realpath() actually has asterisk, not pattern (#6891)
  • [Php82] Handle implicit "public" on construtor promotion on ReadOnlyClassRector (#6895)



rectorphp/rector-symfony 🎵

  • [Symfony73] Skip different object on GetFunctionsToAsTwigFunctionAttributeRector (#767)
  • skip magic first class callable (#766)
  • [symfony 7.2] AddPushRequestToRequestStackConstructorRector (#765)
  • [Symfony 7.3] kick off GetFunctionsToAsTwigFunctionAttributeRector (#764)
  • [Symfony 7.3] Handle first class callable on GetFiltersToAsTwigFilterAttributeRector (#763)
  • Register symfony73-twig-bundle into Symfony7SetProvider (#762)
  • [symfony 7.3] Add GetFiltersToAsTwigFilterAttributeRector to migrate #[TwigFilter] (#761)
  • [code-quality] Improve TemplateAnnotationToThisRenderRector to keep ternary types (#758)
  • Keep JsonResponse type (#757)
  • Remove array shape return in TemplateAnnotationToThisRenderRector as no longer used (#755)
  • Add attribute support to TemplateAnnotationToThisRenderRector (#754)
  • [7.3] Update InvokableCommandRector to InvokableCommandInputAttributeRector to improve discoverability (#743)

rectorphp/rector-doctrine 🟠

  • Remove array on collection in TypedPropertyFromToManyRelationTypeRector (#386)
  • Remove default null value in TypedPropertyFromToManyRelationTypeRector (#384)
  • [collection] Add embed many annotation support to TypedPropertyFromToManyRelationTypeRector (#383)
  • Fix #[AsListener] attribute location to doctrine bundle 2.8, deprecate doctrine constants and refer to composer based sets (#382)

rectorphp/rector-phpunit 🟢

  • Detect Test Attribute in TestsNodeAnalyzer::isTestClassMethod (#486), Thanks @Levivb
  • [code-quality] Skip ctor to setup in ConstructClassMethodToSetUpTestCaseRector for non-test classes, e.g. helpers (#485)
  • [phpunit 10] Add ParentTestClassConstructorRector (#484)

Don't miss a new rector release

NewReleases is sending notifications on new releases.