1
0
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:
Lesnykh Ilia
2017-05-08 12:13:42 +03:00
committed by Jordi Boggiano
parent 35c84c5b6f
commit e5ff7eb074
4 changed files with 7 additions and 7 deletions

View File

@@ -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]);
}