-
-
Notifications
You must be signed in to change notification settings - Fork 431
[TypeDeclaration] Handle with other method from parent on KnownMagicClassMethodTypeRector #7423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…lassMethodTypeRector
|
Fixed 🎉 /cc @TomasVotruba |
|
All checks have passed 🎉 @TomasVotruba I am merging it ;) |
| "rules-tests/CodingStyle/Rector/Namespace_/ImportFullyQualifiedNamesRector/Source", | ||
| "rules-tests/Renaming/Rector/Name/RenameClassRector/Source" | ||
| "rules-tests/Renaming/Rector/Name/RenameClassRector/Source", | ||
| "rules-tests/TypeDeclaration/Rector/ClassMethod/KnownMagicClassMethodTypeRector/Source" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be needed. The class respects PSR-4, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is weird that without it, it doesn't work on this case, probably some sort order issue or some case sensitive typo, but double check without add to classmap, use previous return null, then run "composer update", and error happen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I got it, the class name is different with file name:
-abstract class ParentClassWithOtherMethod
+abstract class ParentClassOtherMethodas file name is named ParentClassOtherMethod, I will create new PR for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created new PR for it:
Ref #7422 (review)