diff --git a/src/Tools/Console/ConsoleLogger.php b/src/Tools/Console/ConsoleLogger.php index 34b5623bd..800c20c14 100644 --- a/src/Tools/Console/ConsoleLogger.php +++ b/src/Tools/Console/ConsoleLogger.php @@ -71,7 +71,8 @@ public function __construct( /** * {@inheritDoc} * - * @param mixed[] $context + * @param string|Stringable $message + * @param mixed[] $context */ public function log($level, $message, array $context = []): void { diff --git a/tests/Metadata/Storage/DebugLogger.php b/tests/Metadata/Storage/DebugLogger.php index 3a6f14e8a..3ae60c70c 100644 --- a/tests/Metadata/Storage/DebugLogger.php +++ b/tests/Metadata/Storage/DebugLogger.php @@ -5,6 +5,7 @@ namespace Doctrine\Migrations\Tests\Metadata\Storage; use Psr\Log\AbstractLogger; +use Stringable; final class DebugLogger extends AbstractLogger { @@ -13,7 +14,8 @@ final class DebugLogger extends AbstractLogger /** * {@inheritDoc} * - * @param mixed[] $context + * @param string|Stringable $message + * @param mixed[] $context */ public function log($level, $message, array $context = []): void { diff --git a/tests/TestLogger.php b/tests/TestLogger.php index 385168f7f..239bad46f 100644 --- a/tests/TestLogger.php +++ b/tests/TestLogger.php @@ -23,7 +23,8 @@ class TestLogger extends AbstractLogger /** * {@inheritDoc} * - * @param mixed[] $context + * @param string|Stringable $message + * @param mixed[] $context */ public function log($level, $message, array $context = []): void {