[Debug] php 8 does not pass $context to error handlers.

This commit is contained in:
Alexander M. Turek 2020-05-22 13:12:29 +02:00
parent 52abcbeec9
commit 593897c9e1
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ class ErrorHandlerThatUsesThePreviousOne
return $handler;
}
public function handleError($type, $message, $file, $line, $context)
public function handleError()
{
return \call_user_func(self::$previous, $type, $message, $file, $line, $context);
return \call_user_func_array(self::$previous, \func_get_args());
}
}