Skip to content

Commit

Permalink
strtolower for Assertion too
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Oct 4, 2019
1 parent 950e870 commit 3755bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger/FilteredLogLevelDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3755bba

Please sign in to comment.