Skip to content
This repository was archived by the owner on Apr 9, 2024. It is now read-only.

Commit dee79ec

Browse files
committed
prepare for 7.x
1 parent 417939c commit dee79ec

File tree

2 files changed

+4911
-5
lines changed

2 files changed

+4911
-5
lines changed

app/Exceptions/Handler.php

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Exceptions;
44

5-
use Exception;
5+
use Throwable;
66
use Illuminate\Auth\Access\AuthorizationException;
77
use Illuminate\Database\Eloquent\ModelNotFoundException;
88
use Illuminate\Validation\ValidationException;
@@ -28,10 +28,12 @@ class Handler extends ExceptionHandler
2828
*
2929
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
3030
*
31-
* @param \Exception $exception
31+
* @param \Throwable $exception
3232
* @return void
33+
*
34+
* @throws \Exception
3335
*/
34-
public function report(Exception $exception)
36+
public function report(Throwable $exception)
3537
{
3638
parent::report($exception);
3739
}
@@ -40,10 +42,12 @@ public function report(Exception $exception)
4042
* Render an exception into an HTTP response.
4143
*
4244
* @param \Illuminate\Http\Request $request
43-
* @param \Exception $exception
45+
* @param \Throwable $exception
4446
* @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
47+
*
48+
* @throws \Throwable
4549
*/
46-
public function render($request, Exception $exception)
50+
public function render($request, Throwable $exception)
4751
{
4852
return parent::render($request, $exception);
4953
}

0 commit comments

Comments
 (0)