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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user