1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-14 09:04:15 +02:00

Fix error handler to not receive $context anymore as php8 dropped that

This commit is contained in:
Jordi Boggiano
2022-04-22 21:32:10 +02:00
parent a7de8dd0c2
commit 1c80bce4ad
2 changed files with 8 additions and 11 deletions

View File

@@ -176,7 +176,8 @@ class PHPConsoleHandlerTest extends TestCase
);
$errorHandler = ErrorHandler::register($this->initLogger($classesPartialsTraceIgnore ? ['classesPartialsTraceIgnore' => $classesPartialsTraceIgnore] : []), false);
$errorHandler->registerErrorHandler([], false, E_USER_WARNING);
$errorHandler->handleError($code, $message, $file, $line);
$reflMethod = new \ReflectionMethod($errorHandler, 'handleError');
$reflMethod->invoke($errorHandler, $code, $message, $file, $line);
}
public function testException()