-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
[3.x] feat: add support for DNF types #236
Conversation
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.
@nhedger Looks good to me 👍
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.
@nhedger Thank you very much for these high quality changes! Functionally, this LGTM and very much appreciate the added tests.
I've added some minor remarks regarding internal functions only, WDYT?
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.
@nhedger Thanks for the quick update, changes LGTM! Keep it up! 👍
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.
Awesome, thank you for putting this together 👍
I'll do it, probably before the end of the week. |
This PR adds support for Disjunctive Normal Form Types (DNF types) when using PHP 8.2.
Overview of the changes
ReflectionNamedType
to be analyzed.Adds two new internal functionsmatchesType
andmatchesAllTypes
to extract common functionality.Please let me know if you think that I missed something.
Closes #235