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

Gantry 5 - Compile Error: Declaration of Psr\Log\NullLogger #3264

Open
trevorsm opened this issue Aug 26, 2024 · 0 comments
Open

Gantry 5 - Compile Error: Declaration of Psr\Log\NullLogger #3264

trevorsm opened this issue Aug 26, 2024 · 0 comments

Comments

@trevorsm
Copy link

Gantry5 v5.5.19

I have been trying to set up login using PassKey but after signing in the following error is thrown:

Compile Error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\AbstractLogger::log($level, Stringable|string $message, array $context = []): void

After a bit of Googling I was able to fix the error by editing /libraries/gantry5/vendor/psr/log/Psr/Log/NullLogger.php

Replacing line 26:
public function log($level, $message, array $context = array())

With:
public function log($level, $message, array $context = []): void

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

No branches or pull requests

2 participants
@trevorsm and others