| 1 |
<?php declare(strict_types=1); |
| 2 |
|
| 3 |
namespace PhpParser; |
| 4 |
|
| 5 |
interface ErrorHandler { |
| 6 |
/** |
| 7 |
* Handle an error generated during lexing, parsing or some other operation. |
| 8 |
* |
| 9 |
* @param Error $error The error that needs to be handled |
| 10 |
*/ |
| 11 |
public function handleError(Error $error): void; |
| 12 |
} |