-
Notifications
You must be signed in to change notification settings - Fork 15
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
psalm fails during Github actions due to XML config error #335
Comments
@jrfnl no urgency but you have a lot more experience with Github actions and composer dependencies than I do; any ideas? |
@sirbrillig Short answer: PHPUnit requires PHP Parser 5.x, while Psalm doesn't support that yet and as Psalm in a distant past had their version requirements too loosey, this results in v 0.3.14 being installed. Oh and I can reproduce this locally without any problems too. Have a look at: https://packagist.org/packages/vimeo/psalm
And if you run: composer why nikic/php-parser You'll see this as a reply:
I can think of two possible ways to solve this, but haven't tested either:
|
Oh, just thought of another option: run the Again: haven't tested, so your mileage may vary. |
Thanks! For later reference, I think this is documented here: vimeo/psalm#11112 |
That seems to work for now! |
Recently, when Github actions runs
psalm
, it has an error:I'm not sure why this happens but one clue is the version of psalm being used:
Considering this is running in PHP 8.3.13, it's strange that we're getting version 0.3 instead of version 5.21. 🙃
Note that psalm runs just fine (from
composer static-analysis
) in my local install. This is only happening in github actions.A full example of this can be seen here: https://github.com/sirbrillig/phpcs-variable-analysis/actions/runs/11884238927/job/33112139346
The text was updated successfully, but these errors were encountered: