[Debug] php 8 does not pass $context to error handlers.
This commit is contained in:
parent
52abcbeec9
commit
593897c9e1
@ -15,8 +15,8 @@ class ErrorHandlerThatUsesThePreviousOne
|
|||||||
return $handler;
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user