1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-20 08:06:19 +02:00

Fix SyslogUdpHandler tests

This commit is contained in:
Jordi Boggiano
2019-07-06 13:29:30 +02:00
parent 0c3811c8b1
commit 81108d4e8a
2 changed files with 9 additions and 2 deletions

View File

@@ -415,6 +415,10 @@ class Logger implements LoggerInterface, ResettableInterface
throw new InvalidArgumentException('Level "'.$level.'" is not defined, use one of: '.implode(', ', array_keys(static::$levels)));
}
if (!is_int($level)) {
throw new InvalidArgumentException('Level "'.var_export($level, true).'" is not defined, use one of: '.implode(', ', array_keys(static::$levels)));
}
return $level;
}