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