Problem/Motivation

PHP Fatal error: Declaration of Drupal\exception_mailer\Logger\ErrorLog::log($level, $message, array $context = []) must be compatible with Drupal\Core\Logger\RfcLoggerTrait::log($level, Stringable|string $message, array $context = []): void in /var/www/html/web/modules/contrib/exception_mailer/src/Logger/ErrorLog.php on line 116

CommentFileSizeAuthor
#2 3351812.patch522 bytesaherczeg
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aherczeg created an issue. See original summary.

aherczeg’s picture

FileSize
522 bytes

Updated the function to make it compatible with Drupal\Core\Logger\RfcLoggerTrait::log

aherczeg’s picture

Title: ErrorLog::log not compatible with Drupal\Core\Logger\RfcLoggerTrait::log » D10 ErrorLog::log not compatible with Drupal\Core\Logger\RfcLoggerTrait::log
Kosa Ilma’s picture

I could reproduce the error on a newly installed Drupal 10.0.9.
I added the patch and the error had gone.

Kosa Ilma’s picture

Status: Active » Reviewed & tested by the community

  • szato committed 8ae56523 on 8.x-3.x authored by aherczeg
    Issue #3351812 by aherczeg, Kosa Ilma: D10 ErrorLog::log not compatible...
szato’s picture

Assigned: aherczeg » Unassigned
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.