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.

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DieterHolvoet created an issue. See original summary.

DieterHolvoet’s picture

DieterHolvoet’s picture

Status: Active » Closed (works as designed)

My bad, I was using an older version of the module.