Enhance MethodCallToPropertyFetchRector to allow specifying a base class #7031
brandonkelly
started this conversation in
Ideas
Replies: 1 comment
-
|
Resolved in rectorphp/rector-src#1905 |
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 would like to find any code that is calling a certain method (
craft\elements\User::getFullName()) and have them replaced with a property accessor ($fullName), for example:It seems like MethodCallToPropertyFetchRector is close, but is only for
$this->methodName(), and doesn’t allow specifying a base class for the method.Hoping something like this could be made possible:
Beta Was this translation helpful? Give feedback.
All reactions