xref: /PHP-Parser/lib/PhpParser/ErrorHandler.php (revision 48f470ea)
1<?php declare(strict_types=1);
2
3namespace PhpParser;
4
5interface 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}
13