mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 09:06:10 +02:00
Use coalesce operator (#982)
* Use coalesce operator * Use coalesce operator * Use coalesce operator * Use coalesce operator
This commit is contained in:
committed by
Jordi Boggiano
parent
35c84c5b6f
commit
e5ff7eb074
@@ -175,7 +175,7 @@ class ErrorHandler
|
||||
|
||||
// fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries
|
||||
if (!$this->hasFatalErrorHandler || !in_array($code, self::$fatalErrors, true)) {
|
||||
$level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : LogLevel::CRITICAL;
|
||||
$level = $this->errorLevelMap[$code] ?? LogLevel::CRITICAL;
|
||||
$this->logger->log($level, self::codeToString($code).': '.$message, ['code' => $code, 'message' => $message, 'file' => $file, 'line' => $line]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user