From 98596de4b56f267de3a3c3138d81cb564b34496d Mon Sep 17 00:00:00 2001 From: Joshua Behrens Date: Thu, 21 May 2020 14:32:29 +0200 Subject: [PATCH] Make log level less strict --- src/Log/DebugLogger.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Log/DebugLogger.php b/src/Log/DebugLogger.php index 4f27357f..04962fc9 100644 --- a/src/Log/DebugLogger.php +++ b/src/Log/DebugLogger.php @@ -23,7 +23,7 @@ public function __construct(LogHandlerInterface $handler) } /** - * @param int $level + * @param mixed $level * @param string $message * @param array $context */ @@ -41,7 +41,7 @@ public function log($level, $message, array $context = []): void * @return array * @throws Exception */ - private function buildRecord(int $level, string $message, array $context = []): array + private function buildRecord($level, string $message, array $context = []): array { if (array_key_exists('error', $context)) { /** @var Throwable $error */