[ErrorHandler] Return false directly and remove unused variable

This commit is contained in:
Thomas Calvet 2020-09-25 10:50:50 +02:00
parent f71d8cfabb
commit 3933957d1a

View File

@ -419,9 +419,8 @@ class ErrorHandler
}
if (!$type || (!$log && !$throw)) {
return !$silenced && $type && $log;
return false;
}
$scope = $this->scopedErrors & $type;
if (false !== strpos($message, "@anonymous\0")) {
$logMessage = $this->parseAnonymousClass($message);