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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user