Skip to content

Commit

Permalink
Fix fatal error in PHP 8.1 (#8108)
Browse files Browse the repository at this point in the history
PHP Fatal error: Declaration of LORIS\Log\ErrorLogLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\LoggerTrait::log($level, Stringable|string $message, array $context = []): void in /var/www/Loris/src/Log/ErrorLogLogger.php on line 65
  • Loading branch information
kongtiaowang authored Jun 9, 2022
1 parent a083a44 commit ae11170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Log/ErrorLogLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private function interpolate(string $message, array $context = array()) : string
*
* @throws \Psr\Log\InvalidArgumentException
*/
public function log($level, $message, array $context = array())
public function log($level, $message, array $context = array()): void
{
// LogLevel consts are strings, not integers, so we need to
// be explicit about which are used instead of doing a < or >
Expand Down

0 comments on commit ae11170

Please sign in to comment.