Copied!

Error handler that collects all errors into an array.

This allows graceful handling of errors.

CloneableInstantiable
Methods
public clearErrors() : void
 

Reset/clear collected errors.

public getErrors() : array
 

Get collected errors.

  • return \Error[]
public handleError(PhpParser\Error $error) : void
public hasErrors() : bool
 

Check whether there are any errors.

Properties
private array $errors = []
 
  • var \Error[] Collected errors
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration