🐞 fix: Error cleanup, add test harness

This commit is contained in:
Keith Solomon committed 2026-03-21 23:21:56 -05:00
1 parent adabacc48d
commit 8e66d69b9e
1743 files changed
+156124 -69

No files matched your search

@@ -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;
}
}