This repository was archived by the owner on Apr 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4911
-5
lines changed Expand file tree Collapse file tree 2 files changed +4911
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace App \Exceptions ;
44
5- use Exception ;
5+ use Throwable ;
66use Illuminate \Auth \Access \AuthorizationException ;
77use Illuminate \Database \Eloquent \ModelNotFoundException ;
88use 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 }
You can’t perform that action at this time.
0 commit comments