diff --git a/kiri-engine/Error/ErrorHandler.php b/kiri-engine/Error/ErrorHandler.php index 101f479c..022fc8ad 100644 --- a/kiri-engine/Error/ErrorHandler.php +++ b/kiri-engine/Error/ErrorHandler.php @@ -123,8 +123,6 @@ class ErrorHandler extends Component implements ErrorInterface trigger_print_error($exception); event(new OnSystemError()); - - $this->sendError($exception->getMessage(), $exception->getFile(), $exception->getLine()); } @@ -141,17 +139,4 @@ class ErrorHandler extends Component implements ErrorInterface debug_print_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT); } - - /** - * @param $message - * @param $file - * @param $line - * @param int $code - * @return false|string - * @throws Exception - */ - public function sendError($message, $file, $line, int $code = 500): bool|string - { - return ""; - } } diff --git a/kiri-engine/Error/ErrorInterface.php b/kiri-engine/Error/ErrorInterface.php index 0a3d9be3..63d002c7 100644 --- a/kiri-engine/Error/ErrorInterface.php +++ b/kiri-engine/Error/ErrorInterface.php @@ -16,13 +16,4 @@ namespace Kiri\Error; interface ErrorInterface { - /** - * @param $message - * @param $file - * @param $line - * @param int $code - * @return mixed - */ - public function sendError($message, $file, $line, int $code = 500): mixed; - }