$errors
$errors : array<mixed,\PhpParser\Error>
Error handler that collects all errors into an array.
This allows graceful handling of errors.
$errors : array<mixed,\PhpParser\Error>
handleError(\PhpParser\Error $error)
Handle an error generated during lexing, parsing or some other operation.
\PhpParser\Error | $error | The error that needs to be handled |
getErrors() : array<mixed,\PhpParser\Error>
Get collected errors.