-
-
Notifications
You must be signed in to change notification settings - Fork 569
Reify AST node types and remove unneeded nullability #751
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
This achieves a few things: - make the code easier to understand both by humans and static analyzers - improve performance by eliminating unnecessary null checks - improve usability through a clarified API
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.
👌🏾
Co-authored-by: Simon Podlipsky <simon@podlipsky.net>
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.
Nice change 👍 But do you think it is safe to publish as a patch? I am a bit hesitant. Inclining to include it in the next minor.
The actual code changes are very minor and would be best classified as bug fixes. If anything, it would uncover implementations which are already bugged in some way. |
We have conflicts now after merging #740. Mind fixing? Then we can ship it and safely publish it in the new minor 🚢 |
# Conflicts: # src/Language/AST/InterfaceTypeDefinitionNode.php # src/Language/AST/InterfaceTypeExtensionNode.php # src/Utils/ASTDefinitionBuilder.php
@vladar done 🚢 |
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 achieves a few things: