Error handler that collects all errors into an array.

This allows graceful handling of errors.

CloneableInstantiable
ImplementsPhpParser\ErrorHandler
Methods
public clearErrors()
 

Reset/clear collected errors.

public getErrors() : array
 

Get collected errors.

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

Check whether there are any errors.

  • return bool
Properties
private $errors
 
  • var Error[] Collected errors
© 2020 Bruce Wells
Search Namespaces \ Classes
ConfigurationNumbers (0-9.) only