Update README.md to include part6

This commit is contained in:
Thuan Bui
2025-05-09 14:32:00 +09:00
parent f367e95689
commit d5dc8a472a
11798 changed files with 1156306 additions and 7 deletions
@@ -0,0 +1,17 @@
<?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): void {
throw $error;
}
}