Skip to content
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

FIX Remove preinstalled psr extension #94

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Dec 6, 2023

Looks like the version of PHP 8.1 that ships with ubuntu now has the php8.1-psr extension with bundled with it, at least the one used in github actions CI. We do not install this extension using the setup-php github action

That extension causes the following issue php PHP 8.1 builds only

PHP Fatal error: Declaration of Monolog\Logger::emergency(Stringable|string $message, array $context = []): void must be compatible with PsrExt\Log\LoggerInterface::emergency($message, array $context = []) in /home/runner/work/silverstripe-userforms/silverstripe-userforms/vendor/monolog/monolog/src/Monolog/Logger.php on line 681

The solution is to remove the extension - laravel/framework#46165

Example run of this working - https://github.com/emteknetnz/silverstripe-userforms/actions/runs/7121325156/job/19390520149#step:5:81

Copy link
Contributor

@maxime-rainville maxime-rainville left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@maxime-rainville maxime-rainville merged commit 958cb65 into silverstripe:1.5 Dec 7, 2023
4 checks passed
@maxime-rainville maxime-rainville deleted the pulls/1.5/remove-psr-ext branch December 7, 2023 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants