Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When using Drupal 10.1.7 (and possibly also Drupal 10.0), the following error is always visible:
Fatal error: Declaration of Drupal\ultimate_cron\Logger\WatchdogLogger::log($level, $message, array $context = []) must be compatible with Drupal\Core\Logger\RfcLoggerTrait::log($level, Stringable|string $message, array $context = []): void in [..]/modules/contrib/ultimate_cron/src/Logger/WatchdogLogger.php on line 52
Proposed resolution
Update the method signature.
Issue fork ultimate_cron-3411445
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
DieterHolvoet CreditAttribution: DieterHolvoet as a volunteer commentedComment #3
DieterHolvoet CreditAttribution: DieterHolvoet as a volunteer commentedMy bad, I was using an older version of the module.