From 3755bba784838f635902f974f71434bb2306fe69 Mon Sep 17 00:00:00 2001 From: James Titcumb Date: Fri, 4 Oct 2019 14:27:35 +0100 Subject: [PATCH] strtolower for Assertion too --- src/Logger/FilteredLogLevelDecorator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logger/FilteredLogLevelDecorator.php b/src/Logger/FilteredLogLevelDecorator.php index 3b1fe117..111905f8 100644 --- a/src/Logger/FilteredLogLevelDecorator.php +++ b/src/Logger/FilteredLogLevelDecorator.php @@ -39,7 +39,7 @@ final class FilteredLogLevelDecorator implements LoggerInterface */ public function __construct(LoggerInterface $realLogger, string $minimumLogLevel) { - Assert::keyExists(self::LOG_LEVEL_ORDER, $minimumLogLevel); + Assert::keyExists(self::LOG_LEVEL_ORDER, strtolower($minimumLogLevel)); $this->minimumLogLevel = self::LOG_LEVEL_ORDER[strtolower($minimumLogLevel)]; $this->realLogger = $realLogger;