-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: add support for psalm 5 #133
Conversation
This is only a change to `composer.json` to see if CI passes.
Seems like the main obstacle seems to be a BC break in Psalm 5: https://github.com/vimeo/psalm/blob/master/UPGRADING.md?plain=1#L24 We would need to guard against that and use the correct method for each version. Or we could drop support for V4 and only use the new method |
I spent quite some time looking at this, and can't figure out how to make this work. The functionality that is supposed to be the newer version does not do what we want from what I can tell because the only time it sets the |
Hey @danog would you have some time for an advice here? I didn't entirely followed what we did with the getChildNodes. Do you have an example of what we can do to replace it? |
What is being done here with getChildNodes is precisely the reason why that method was a bad idea, in this case it's being used to simply access the type_params property indirectly |
I've updated a bunch of tests for Psalm 5 and marked them accordingly. If Psalm 4 support is going to be dropped, it would be easy to grep for |
Psalm 5 dropped `getChildNodes()`
Looks good, thanks everyone! If we can keep V4 compatibility without too much effort, let's do that for now! |
@orklah can you bump version? :) Thanks! |
done :) |
This is only a change to
composer.json
to see if CI passes.Closes #132