github rectorphp/rector 2.1.7
Released Rector 2.1.7

16 hours ago

New Features 🥳


Bugfixes 🐛

  • fix: skip privatizing Laravel Model attributes and scopes (#7218), Thanks @calebdw!
  • [CodeQuality] Change behaviour of OptionalParametersAfterRequiredRector to fill null default value when previous param is optional (#7222)
  • [CodeQuality] Handle intersection on OptionalParametersAfterRequiredRector (#7223)
  • [CodeQuality] Fill reasonable default value on OptionalParametersAfterRequiredRector (#7226)
  • Support Param nodes in makeNonFinal() (#7228), Thanks @arshidkv12!
  • [CodeQuality] Add Closure support on OptionalParametersAfterRequiredRector (#7224)



rectorphp/rector-symfony 🎵

  • [console] [7.3] add array argument support to /InvokableCommandInputAttributeRector (#842)
  • [console] [7.3] Add support for default values in InvokableCommandInputAttributeRector (#841)
  • [console] [7.3] Add const names in InvokableCommandInputAttributeRector + fix -_ naming to camel case (#840)
  • [console] [7.3] Fix missing options in InvokableCommandInputAttributeRector (#839)
  • [console] [7.3] Replace input/output with symfony style if used in InvokableCommandInputAttributeRector (#838)

rectorphp/rector-doctrine 🟠

  • add target document support to CompletePropertyDocblockFromToManyRector (#465)
  • add support for multiple items (#464)
  • [typed-collections] Add CollectionDocblockGenericTypeRector (#463)
  • fix document service repository class (#462)
  • [code-quality] add document repository support to AddAnnotationToRepositoryRector (#461)

rectorphp/rector-phpunit 🟢

  • [code-quality] add local call support to ScalarArgumentToExpectedParamTypeRector (#543)
  • cover scalar argument in behat as well (#542)
  • [CodeQuality] Skip not match position named argument on ScalarArgumentToExpectedParamTypeRector (#540)
  • add float support to scalar argument rule (#539)
  • Add nullable support to ScalarArgumentToExpectedParamTypeRector (#538)
  • [CodeQuality] Handle crash on no @Depends on AddParamTypeFromDependsRector (#537)

Don't miss a new rector release

NewReleases is sending notifications on new releases.