Skip to content

Released Rector 1.2.3

Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 12 Aug 16:51
· 227 commits to main since this release

New Features 🥳

  • Add withRealPathReporting() to allow real paths in output formatters (#6187), Thanks @llaville!
  • Add known type casting to AnnotationToAttributeRector (#6217)
  • Improve Carbon use parse method (#6183), Thanks @florisbosch!

Bugfixes 🐛

  • Only import docblock if import name enabled on PostFileProcessor (#6185)
  • fix issue #8755 about wrong systemError location (#6184), Thanks @llaville!
  • Support more assign cases in PropertyFetchAssignManipulator (#6192), Thanks @andersonamuller!
  • Skip Symfony Response in ReturnTypeFromReturnNewRector (#6202)
  • Skip only response inside controller class (#6204)
  • [Php54] No need reprint when array is just created on LongArrayToShortArrayRector (#6206)
  • [TypeDeclaration] Handle crash on nullable intersection on ClosureReturnTypeRector (#6213)
  • [Php71] Allow multiple same catches on MultiExceptionCatchRector (#6218)
  • [CodeQuality] Skip Generator on SimplifyForeachToCoalescingRector (#6221)
  • [CodeQuality] Ensure check native array type on Foreach* rules (#6222)
  • [TypeDeclaration] Skip isset and empty with index on param variable on StrictArrayParamDimFetchRector (#6227)
  • [TypeDeclaration] Skip mixed in union on ClosureReturnTypeRector (#6228)

Removed 💀

  • Remove SimplifyUselessVariableRector from code quality level (#6201), Thanks @Harfusha!



rectorphp/rector-symfony 🎵

  • Add the Symfony 7.0 set to SymfonySetList.php (#659), Thanks @pbowyer
  • [Config] Add ParameterBagToAutowireAttributeRector (#654)
  • add void fixture (#653)
  • [CodeQuality] Remove no returns check on ResponseReturnTypeControllerActionRector (#652)
  • Add new Response() support to ResponseReturnTypeControllerActionRector (#651)
  • [Configs] Add MergeServiceNameTypeRector (#650)
  • Deprecate ServicesSetNameToSetTypeRector as it creates invalid code (#649)

rectorphp/rector-doctrine 🟠

  • Add ODM support to TypedPropertyFromToManyRelationTypeRector (#335)
  • Add next fixture (#334)
  • Include ODM in description (#333)
  • Add TYPED_COLLECTIONS set, to have rules deadling with collections together (#332)
  • Merge AddReturnDocBlockToCollectionPropertyGetterByToManyAttributeRector to single rule (#331)
  • Add odm support to AddReturnDocBlockToCollectionPropertyGetterByToManyAnnotationRector (#330)
  • Add ODM support to ExplicitRelationCollectionRector (#329)

rectorphp/rector-phpunit 🔵

  • [PHPUnit100] Skip First class callable on RemoveSetMethodsMethodCallRector (#352)
  • Add magic methods mocking to RemoveSetMethodsMethodCallRector (#351)
  • [CodeQuality] SetUpBeforeClassToSetUpRector (#350)