-
Notifications
You must be signed in to change notification settings - Fork 130
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
various improvements for psalm #537
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.
LGTM, nice fixes, thank you!
oh. I missed the fact that node could be null in ReflectionFunctionAbstract because it can be unitialized. I'll fix that |
Mmh... when trying to add null to the list of types for node, Psalm highlight 18 other lines where it's not handled. I could fix that for Psalm by adding assert($this->node !== null); on each method using it, but I'm not sure it's the best way to go... Any thoughts? |
@orklah perhaps a private method that asserts the node is set, and update $this->node references to point to that method? |
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! Looks good, waiting for build 👍
Please wait. I'm trying to reconcile getNode and getInitializedNode, they both do the same thing. I'm just running tests locally |
It's done, it should pass CI. Thanks for the advice! |
568cdb9
to
b1cabc0
Compare
fixed some CS issues and rebased |
I fixed some errors, updated baseline.
It improved type coverage a bit.