gantry5 icon indicating copy to clipboard operation
gantry5 copied to clipboard

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

Open trevorsm opened this issue 1 year ago • 0 comments

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

trevorsm avatar Aug 26 '24 18:08 trevorsm