Skip to content

Released: Rector 2.0.6

Latest
Compare
Choose a tag to compare
@samsonasik samsonasik released this 06 Jan 10:48
· 9 commits to main since this release

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)