Closed iBotPeaches closed 10 months ago
Just started getting this too on all of my builds in GitHub actions.
Me too, all our GitHub Actions are crashing (in multiple repos).
While waiting for a fix, the psr extension can be disabled
Shared extensions can be disabled by prefixing them with a :. All extensions depending on the specified extension will also be disabled.
steps:
- uses: shivammathur/setup-php@[whatever]
with:
[other stuff]
extensions: :psr
https://github.com/shivammathur/setup-php#heavy_plus_sign-php-extension-support
While waiting for a fix, the psr extension can be disabled
Shared extensions can be disabled by prefixing them with a :. All extensions depending on the specified extension will also be disabled.
steps: - uses: shivammathur/setup-php@[whatever] with: [other stuff] extensions: :psr
https://github.com/shivammathur/setup-php#heavy_plus_sign-php-extension-support
That fix worked for me
Confirmed from Laravel staff in v10 you need to disable the psr extension.
Sure - I can go fix a ton of builds with disabling psr. It isn't that urgent though if I hopefully believe in the morning - that the author will just revert this and things will resume.
As you can see this extension at the core is this outdated PECL extension - https://pecl.php.net/package/psr. This is leading to what we see here.
So I don't think it merits a default include in the image and should be "opt-in" only.
Ran in to this as well:
Uncaught Exception: InvalidArgumentException Could not get class storage for psr\log\loglevel
Emitted in /home/runner/work/traderspost/traderspost/vendor/vimeo/psalm/src/Psalm/Internal/Provider/ClassLikeStorageProvider.php:46
Using GitHub actions with shivammathur/setup-php@v2
Ignoring :psr
worked for me.
Describe the bug
All our builds are failing now (Including Laravel) after this change: https://github.com/shivammathur/php-ubuntu/commit/83d1155cd11a0178b4d7431a0c91ed6c1b7454ad
It manifest as an error of
Which I found is claimed as a "buggy" extension by Symfony: https://github.com/symfony/symfony/issues/49984
Version
v1
orv2
.v2
v1
Runners
Operating systems Ubuntu
PHP versions All
To Reproduce Run PHPStan?
Expected behavior Not a crash
Are you willing to submit a PR? I'd just revert this https://github.com/shivammathur/php-ubuntu/commit/83d1155cd11a0178b4d7431a0c91ed6c1b7454ad