Skip to content

Released Rector 0.12.23

Compare
Choose a tag to compare
@TomasVotruba TomasVotruba released this 01 May 15:51
· 4631 commits to main since this release

This release fixes major slowdown on find parents node rules in stmts: #7144, thanks for report and provided detailed info @bobvandevijver and @jrmcpeek 🙇

Update as soon as possible to enjoy the speed again 👍

  • [Code] Improve BetterNodeFinder::findFirstPrevious() to only locate previous of parent if no previous of Node (#2209), Thanks @samsonasik!

New Features 🎉

  • [CodeQuality] Add InlineArrayReturnAssignRector (#2183)
  • Add RectorConfigProvider to ask for configuration behave for 3rd party packages (#2187)
  • [Core] Add $seconds, $maxNumberOfProcess, and $jobSize parameters to RectorConfig::parallel() method (#2188), Thanks @samsonasik!
  • [DX] Move PhpVersionProvider from AbstractRector to particular services (#2189)
  • [DowngradePhp80] Support match as array item in DowngradeMatchToSwitchRector (#2178), Thanks @jrstanley!

Bugfixes 🐛

  • [DeadCode] Improve RemoveUnreachableStatementRector performance by return after array_splice early (#2193), Thanks @samsonasik!
  • [DeadCode] Register array_splice into impure functions on PureFunctionDetector (#2194), Thanks @samsonasik!
  • [CodingStyle] Skip readonly type property on AddArrayDefaultToArrayPropertyRector (#2196), Thanks @samsonasik!
  • [DeadCode] Remove RemoveCodeAfterReturnRector, already handled at RemoveUnreachableStatementRector (#2199), Thanks @samsonasik!