mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
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:
parent
e2accfdbdb
commit
a9211efbfc
@ -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)";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user