<?phpdeclare(strict_types=1);namespacePhpParser\ErrorHandler;usePhpParser\Error;usePhpParser\ErrorHandler;/** * Error handler that handles all errors by throwing them. * * This is the default strategy used by all components. */classThrowingimplementsErrorHandler{publicfunctionhandleError(Error$error){throw$error;}}