From 076b1fbca7ece1418dd0046ca18ebc9b8de94eb9 Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 7 Jan 2023 19:53:57 +0000 Subject: [PATCH] Shift to Throwable --- app/Exceptions/Handler.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 364621e45..5a53cd3ba 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,8 +2,8 @@ namespace App\Exceptions; -use Exception; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Throwable; class Handler extends ExceptionHandler { @@ -29,12 +29,12 @@ class Handler extends ExceptionHandler /** * Report or log an exception. * - * @param \Exception $exception + * @param \Throwable $exception * @return void * - * @throws \Exception + * @throws \Throwable */ - public function report(Exception $exception) + public function report(Throwable $exception) { parent::report($exception); } @@ -43,12 +43,12 @@ class Handler extends ExceptionHandler * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $exception + * @param \Throwable $exception * @return \Symfony\Component\HttpFoundation\Response * - * @throws \Exception + * @throws \Throwable */ - public function render($request, Exception $exception) + public function render($request, Throwable $exception) { return parent::render($request, $exception); }