php80: remove $errcontext parameter from APIErrorHandler

This parameter was deprecated since 7.2.0, but is now removed. https://www.php.net/manual/en/function.set-error-handler.php
This commit is contained in:
Stephan 2022-05-20 13:34:02 +02:00
parent e2accfdbdb
commit a9211efbfc

View File

@ -143,16 +143,9 @@ class ApiControllerBase extends ControllerRoot
* @param $errline The fourth parameter is optional, errline, which
* contains the line number the error was raised at, as an
* integer.
* @param $errcontext The fifth parameter is optional, errcontext, which
* is an array that points to the active symbol table
* at the point the error occurred. In other words,
* errcontext will contain an array of every variable
* that existed in the scope the error was triggered
* in. User error handler must not modify error
* context.
* @throws \Exception
*/
public function APIErrorHandler($errno, $errstr, $errfile, $errline, $errcontext)
public function APIErrorHandler($errno, $errstr, $errfile, $errline)
{
if ($errno & error_reporting()) {
$msg = "Error at $errfile:$errline - $errstr (errno=$errno)";