PhpSandbox\PHPSandbox::error PHP Méthode

error() public méthode

Invoke sandbox error handler
public error ( integer $errno, string $errstr, string $errfile, integer $errline, array $errcontext ) : mixed
$errno integer Error number
$errstr string Error message
$errfile string Error file
$errline integer Error line number
$errcontext array Error context array
Résultat mixed
    public function error($errno, $errstr, $errfile, $errline, $errcontext)
    {
        $this->last_error = error_get_last();
        if ($this->convert_errors) {
            return $this->exception(new \ErrorException($errstr, 0, $errno, $errfile, $errline));
        }
        return is_callable($this->error_handler) ? call_user_func_array($this->error_handler, [$errno, $errstr, $errfile, $errline, $errcontext, $this]) : null;
    }
PHPSandbox