1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-24 18:16:10 +02:00

Replace call_user_func

This commit is contained in:
Mponos George
2020-07-08 23:02:57 +03:00
parent 53e2c97b0b
commit a54cd1f178
8 changed files with 10 additions and 10 deletions

View File

@@ -166,7 +166,7 @@ class ErrorHandler
);
if ($this->previousExceptionHandler) {
call_user_func($this->previousExceptionHandler, $e);
($this->previousExceptionHandler)($e);
}
if (!headers_sent() && !ini_get('display_errors')) {
@@ -198,7 +198,7 @@ class ErrorHandler
if ($this->previousErrorHandler === true) {
return false;
} elseif ($this->previousErrorHandler) {
return call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context);
return ($this->previousErrorHandler)($code, $message, $file, $line, $context);
}
return true;