From f9069b448306e95f92225d446cdd3ceed3872ca5 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Tue, 13 Apr 2021 08:55:11 +0200 Subject: Update to Laravel 7.0 --- app/Exceptions/Handler.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app') diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 21c9784..e5bd8e2 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,14 +2,14 @@ namespace App\Exceptions; -use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Throwable; class Handler extends ExceptionHandler { /** - * A list of the exception types that should not be reported. + * A list of the throwable types that should not be reported. * * @var array */ @@ -23,28 +23,28 @@ class Handler extends ExceptionHandler ]; /** - * Report or log an exception. + * Report or log a throwable. * - * This is a great spot to send exceptions to Sentry, Bugsnag, etc. + * This is a great spot to send throwables to Sentry, Bugsnag, etc. * - * @param \Exception $exception + * @param \Throwable $throwable * @return void */ - public function report(Exception $exception) + public function report(Throwable $throwable) { - parent::report($exception); + parent::report($throwable); } /** - * Render an exception into an HTTP response. + * Render a throwable into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $exception + * @param \Throwable $throwable * @return \Illuminate\Http\Response */ - public function render($request, Exception $exception) + public function render($request, Throwable $throwable) { - return parent::render($request, $exception); + return parent::render($request, $throwable); } /** -- cgit v1.2.3