diff --git a/library/Zend/Log/Logger.php b/library/Zend/Log/Logger.php index 436c702bfa8..708271975fe 100644 --- a/library/Zend/Log/Logger.php +++ b/library/Zend/Log/Logger.php @@ -517,16 +517,16 @@ public static function registerErrorHandler(Logger $logger, $continueNativeHandl return false; } - $errorHandlerMap = static::$errorPriorityMap; + $errorPriorityMap = static::$errorPriorityMap; $previous = set_error_handler(function ($level, $message, $file, $line) - use ($logger, $errorHandlerMap, $continueNativeHandler) + use ($logger, $errorPriorityMap, $continueNativeHandler) { $iniLevel = error_reporting(); if ($iniLevel & $level) { - if (isset(Logger::$errorPriorityMap[$level])) { - $priority = $errorHandlerMap[$level]; + if (isset($errorPriorityMap[$level])) { + $priority = $errorPriorityMap[$level]; } else { $priority = Logger::INFO; }