From 409e84a911be8b4588086d029d3b46b2121626a9 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Log/DebugLogger.php b/src/Log/DebugLogger.php index 4f27357f..803940b1 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 */ @@ -37,11 +37,12 @@ public function log($level, $message, array $context = []): void } /** + * @param mixed $level * @param array $context * @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 */