combining multiple rector rules into one #9134
Closed
prescriptionlifeline
started this conversation in
General
Replies: 1 comment
-
|
You can create a separate config that you can include in main |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a legacy library that I'd like to write a Rector rule to upgrade. I can facilitate this with existing Rector rules like
RenameMethodRectorandRenamePropertyRector, however, rather then have people copy paste a bunch of lines into their rector.php file it'd be nice if a brand new Rector rule could be created that calls those two rules with the appropriate configured rule parameters. That way all you'd have to do when trying to upgrade your codebase is to copy / paste into your rector.php one line vs twenty or so.Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions