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;
}