github rectorphp/rector 0.10.16
Released Rector 0.10.16 fixing version and allowing older php-parser

latest releases: 1.0.4, 1.04, 1.0.3...
3 years ago

New Features 🎉

  • Added @changelog annotation above rule to explain why the rule does what it does in the output #6073 - thanks @sabbelasichon

Just add it to your Rector rule:

/**
 * @changelog https://wiki.php.net/rfc/typed_properties_v2#proposal
 */
final class TypedPropertyRector extends AbstractRector
{
}

Run Rector:

vendor/bin/rector ...

And if this rule changed the code, it will show the link too:

Applied Rectors:

* TypedPropertyRector - https://wiki.php.net/rfc/typed_properties_v2#proposal


  • [DeadCode] Added RemoveUnusedPrivateMethodParameterRector - #6168
  • Refactored file processors to make use of File object (similar to Scope concept from PHPStan) #6085
  • Added dump_node() helper function to see what node you have #6229 - thanks @ullique for inspiration
dump_node($string);
// change 2nd to increase depth
dump_node($string, 3);

New Downgrade Rules


Bugfixes 🐛

  • Fixed invalid doc block tag crashing #6068
  • Fixed parent, self, static prefixing on class name change #6159
  • Fixed use of AbstractRectorTestCase in tests while using rector/rector-prefixed - f801c76
  • Fixed AUTOLOAD_PATHS and BOOTSTRAP_FILES parameters in tests - #6239
  • Fixed displayed Rector version in rector/rector-prefixed 26d6fff
  • Fixed code conflicts with different php-parser version in rector/rector-prefixed - f15648e, thanks @phpstan for inspiration

Don't miss a new rector release

NewReleases is sending notifications on new releases.