github rectorphp/rector 0.19.6
Released Rector 0.19.6

latest releases: 1.2.0, 1.1.1, 1.1.0...
4 months ago

New Features and Changes 🥳

  • [EarlyReturn] Improve RemoveAlwaysElseRector to handle multiple ElseIfs (#8178) (#5521), Thanks @pkvach!
  • [Privatization] Add FinalizeTestCaseClassRector (#5539)
  • Add support for YieldFrom into places where Yield_ is checked (#5499), Thanks @integer!
  • [Transform] Add RectorConfigBuilderRector (#5551)
  • [DX] Warn about run on /vendor directory (#5525)
  • [DX] PHP sets should not disable all other version-based rules (#5527)
  • [stabilize] Deprecate FinalizeClassesWithoutChildrenRector as causing bugs without full context (#5535)

Bugfixes 🐛

  • Fix xdebug handling (#5544), Thanks @staabm!
  • Added 4 methods into RectorConfigBuilder (#5524), Thanks @Perf!
  • Fix AddMethodCallBasedStrictParamTypeRector if already has a type (#5530)
  • [CodingStyle] Return null on no change on StrictArraySearchRector (#5528)
  • [Php81] Allow nullable union on NullToStrictStringFuncCallArgRector (#5532)
  • [stabilize] Deprecate FinalizePublicClassConstantRector as not reliable and causes uncontroller changed (#5534)
  • [TypeDeclaration] Change bool to false or true docblock when union has false/true standalone type on ReturnUnionTypeRector (#5543)
  • [EarlyReturn] Skip append variable in PreparedValueToEarlyReturnRector (#8390) (#5545), Thanks @pkvach!
  • Fix make ReadOnlyPropertyRector skip if traits are used, as not reliable (#5548)
  • Kick off basic rector.php with simpler and more practical rule (#5552)

Removed 💀

  • Exclude finalize rule from private set, to keep safer (#5523)
  • [Performance] Remove CollectedData on ProcessResult (#5520)
  • [stabilize] Remove family tree check from ClassMethodParamVendorLockResolver as not reliable (#5536)
  • [stabilize] Remove child classes from MixedTypeRector as not reliable (#5537)
  • [stabilize] Remove last children method checks (#5538)

Don't miss a new rector release

NewReleases is sending notifications on new releases.