-
-
Notifications
You must be signed in to change notification settings - Fork 338
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
[TypeDeclaration] Skip anonymous class and other object on ReturnUnionTypeRector #4670
Conversation
Fixed 🎉 , I reverted |
Ok, reverting https://github.com/rectorphp/rector-src/actions/runs/5775375225/job/15653289866?pr=4670#step:5:39 I will check if it can be tweaked for special |
Fixed 🎉 with class name anonymous detection 69e2b41 in ClassAnalyzer |
All checks have passed 🎉 @TomasVotruba I think it is ready. |
Also handled anonymous class with parent e16b762 that covered by |
Thank you 👍 |
The following code should be skipped:
as it will cause fatal error even with
object|SkipAnonymousClassAndOtherObject
see https://3v4l.org/TFnZj