diff options
| author | Camil Staps | 2021-04-13 08:55:11 +0200 | 
|---|---|---|
| committer | Camil Staps | 2021-04-13 08:55:11 +0200 | 
| commit | f9069b448306e95f92225d446cdd3ceed3872ca5 (patch) | |
| tree | 3038b6d2d4aa94f4daa21898f40a0139a05978c7 /app/Exceptions | |
| parent | Update to Laravel 6.0 (diff) | |
Update to Laravel 7.0
Diffstat (limited to 'app/Exceptions')
| -rw-r--r-- | app/Exceptions/Handler.php | 22 | 
1 files changed, 11 insertions, 11 deletions
| 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);      }      /** | 
