github rectorphp/rector 2.0.6
Released: Rector 2.0.6

3 days ago

New Features 🥳

  • [dx] Add --only-suffix to filter files by suffixes (#6647)
  • [DeadCode] Add ReplaceBlockToItsStmtsRector (#6641)
  • [DeadCode] Add RemoveUselessAssignFromPropertyPromotionRector (#6643)
  • Add readonly by default on new promoted property (#6650)
  • Use autowired method if exists in adding new dependency (#6652)

Bugfixes 🐛

  • [CodeQuality] Handle crash inside block statement with unreachable statement on OptionalParametersAfterRequiredRector (#6640)
  • [DX] Use Param->isPromoted() over param->flags !== 0 check on promotion property check (#6646)
  • [Php80] Keep numeric string, string "true", "false" as is on StringAnnotationToAttributeMapper (#6610)
  • [PHPStan ^2.1.1] Handle next unreachable statement via UnreachableStatementNode->getNextUnreachableStatements() (#6642)

Removed 💀

  • [Parser] Remove SmartPhpParserFactory and SmartPhpParser (#6651)

Don't miss a new rector release

NewReleases is sending notifications on new releases.