Fatal error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = []) in /homepages/45/d409748348/htdocs/cms/libraries/src/Log/DelegatingPsrLogger.php on line 77
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = []) (500 Whoops, looks like something went wrong.)

FatalError

HTTP 500 Whoops, looks like something went wrong.

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

Exception

Symfony\Component\ErrorHandler\Error\ FatalError

  1.      * @return  void
  2.      *
  3.      * @since   3.8.0
  4.      * @throws  InvalidArgumentException
  5.      */
  6.     public function log($levelstring|\Stringable $message, array $context = []): void
  7.     {
  8.         // Make sure the log level is valid
  9.         if (!\array_key_exists($level$this->priorityMap)) {
  10.             throw new \InvalidArgumentException('An invalid log level has been given.');
  11.         }

Stack Trace

FatalError
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of Joomla\CMS\Log\DelegatingPsrLogger::log($level, Stringable|string $message, array $context = []): void must be compatible with Psr\Log\LoggerInterface::log($level, $message, array $context = [])

  at /homepages/45/d409748348/htdocs/cms/libraries/src/Log/DelegatingPsrLogger.php:77