Quantcast
Viewing all articles
Browse latest Browse all 1635

Extensions for Joomla! 5.x • [SOLVED] Gantry 5 - Compile Error: Declaration of Psr\Log\NullLogger

Gantry5 v5.5.19

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

Code:

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

Replace line 26

Code:

public function log($level, $message, array $context = array())
with

Code:

public function log($level, $message, array $context = []): void
Is it possible to override this file?

Regards
Trevor

Statistics: Posted by trev — Wed Aug 21, 2024 6:38 pm



Viewing all articles
Browse latest Browse all 1635

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>