core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php index 2d6f022..4317ff0 100644 --- a/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/FinalExceptionSubscriber.php @@ -153,7 +153,7 @@ public static function getSubscribedEvents() { * @return bool */ protected function isErrorLevelVerbose() { - return $this->getErrorLevel() != ERROR_REPORTING_DISPLAY_VERBOSE; + return $this->getErrorLevel() === ERROR_REPORTING_DISPLAY_VERBOSE; } /** @@ -189,6 +189,7 @@ protected function simplifyFileInError($error) { if (substr($error['%file'], 0, $root_length) == DRUPAL_ROOT) { $error['%file'] = substr($error['%file'], $root_length + 1); } + return $error; } }