mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-06-03 10:34:51 +02:00
The formatting in this project has become something of a mess, because it changed over time. Add a CS fixer config and reformat to the desired style, which is PSR-12, but with sane brace placement.
18 lines
362 B
PHP
18 lines
362 B
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace PhpParser\ErrorHandler;
|
|
|
|
use PhpParser\Error;
|
|
use PhpParser\ErrorHandler;
|
|
|
|
/**
|
|
* Error handler that handles all errors by throwing them.
|
|
*
|
|
* This is the default strategy used by all components.
|
|
*/
|
|
class Throwing implements ErrorHandler {
|
|
public function handleError(Error $error) {
|
|
throw $error;
|
|
}
|
|
}
|