-
Notifications
You must be signed in to change notification settings - Fork 660
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
Add nikic/php-parser v5 support #11035
base: 5.x
Are you sure you want to change the base?
Conversation
5b4cba4
to
6358029
Compare
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.
I ran this over a code base that's still using php-parser 4. There's a problem with usePHPParserV4
, which I've commented on, but with that fixed it seems to work.
Do we need to look at running tests against php-parser 4 as well?
6b17670
to
e7c21a4
Compare
Thanks. I added the CI "lowest" with php parser 4 and fixed the build. |
/** | ||
* @var SplObjectStorage<PhpParser\Node\FunctionLike, null> | ||
*/ | ||
private SplObjectStorage $closure_statements; |
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.
👍
It would be really nice if we could merge this, currently it is not possible to install Psalm with PHPUnit 11 since it requires |
e7c21a4
to
b6282ae
Compare
Friendly ping @weirdan if you have time to take a look (or can ping another maintainer ?). |
Yeah, it's on my todo list. The thing is big, so it'll take me some time. |
Since we expose parts of PhpParser in our API this cannot go into 5.x line. So instead of merging this I'm going to fork 6.x from the current 5.x (not master) and then use this PR as a base for PhpParser 5.x upgrade. 6.x will be a transitional, hopefully short-lived, series with the same platform requirements as 5.x. Thanks for all your work, this will make it easier. |
If the For example: "vimeo/psalm": "6.x-dev#0f796f1" Replace |
Any update on this? I'm unable to install |
No description provided.