From cf39ea4ad624f2d4e81e70e10e26869fbc939a8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 24 Aug 2023 12:01:34 +0800 Subject: [PATCH] qqq --- kiri-engine/Error/ErrorHandler.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kiri-engine/Error/ErrorHandler.php b/kiri-engine/Error/ErrorHandler.php index 022fc8ad..e7c456b6 100644 --- a/kiri-engine/Error/ErrorHandler.php +++ b/kiri-engine/Error/ErrorHandler.php @@ -127,16 +127,17 @@ class ErrorHandler extends Component implements ErrorInterface /** + * @throws \ErrorException * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface * @throws ReflectionException */ public function errorHandler() { - var_dump(func_get_args()); + $error = func_get_args(); event(new OnSystemError()); - debug_print_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT); + throw new \ErrorException($error[1], $error[0], 1, $error[2], $error[3]); } }