comparison vendor/nikic/php-parser/lib/PhpParser/ErrorHandler/Throwing.php @ 0:4c8ae668cc8c

Initial import (non-working)
author Chris Cannam
date Wed, 29 Nov 2017 16:09:58 +0000
parents
children 5fb285c0d0e3
comparison
equal deleted inserted replaced
-1:000000000000 0:4c8ae668cc8c
1 <?php
2
3 namespace PhpParser\ErrorHandler;
4
5 use PhpParser\Error;
6 use PhpParser\ErrorHandler;
7
8 /**
9 * Error handler that handles all errors by throwing them.
10 *
11 * This is the default strategy used by all components.
12 */
13 class Throwing implements ErrorHandler
14 {
15 public function handleError(Error $error) {
16 throw $error;
17 }
18 }