diff --git a/src/Tools/Console/ConsoleLogger.php b/src/Tools/Console/ConsoleLogger.php index 34b5623bd..019e998c0 100644 --- a/src/Tools/Console/ConsoleLogger.php +++ b/src/Tools/Console/ConsoleLogger.php @@ -73,7 +73,7 @@ public function __construct( * * @param mixed[] $context */ - public function log($level, $message, array $context = []): void + public function log($level, mixed $message, array $context = []): void { if (! isset($this->verbosityLevelMap[$level])) { throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level)); diff --git a/tests/Metadata/Storage/DebugLogger.php b/tests/Metadata/Storage/DebugLogger.php index 3a6f14e8a..0455cfee7 100644 --- a/tests/Metadata/Storage/DebugLogger.php +++ b/tests/Metadata/Storage/DebugLogger.php @@ -15,7 +15,7 @@ final class DebugLogger extends AbstractLogger * * @param mixed[] $context */ - public function log($level, $message, array $context = []): void + public function log($level, mixed $message, array $context = []): void { $this->count++; } diff --git a/tests/TestLogger.php b/tests/TestLogger.php index 385168f7f..01a2a85d0 100644 --- a/tests/TestLogger.php +++ b/tests/TestLogger.php @@ -25,7 +25,7 @@ class TestLogger extends AbstractLogger * * @param mixed[] $context */ - public function log($level, $message, array $context = []): void + public function log($level, mixed $message, array $context = []): void { $this->logs[] = $this->interpolate($message, $context); }