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] Handle crash on intersection in Union type on AddMethodCallBasedStrictParamTypeRector #2704
Conversation
Fixed 🎉 /cc @canvural |
That was super fast. Thank you! |
|
||
return array_filter($input, static fn ($val) => true); | ||
} | ||
} |
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 looks pretty complex. Is there a way to make this fixture simpler to only contain the intersection type?
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.
updated with reduce complexity dc54a42, that's the only code that reproduce the error
All checks have passed 🎉 @TomasVotruba it is ready for review. |
04ed0fc
to
ec4c0c2
Compare
rebased. |
…edStrictParamTypeRector
ec4c0c2
to
8df0f58
Compare
rebased. |
👍 |
Given the following code:
it produce error:
Fixes rectorphp/rector#7311