From 614edf79d32f250450708e36b450874a5f044a8b Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Mon, 13 Jul 2015 19:51:20 +0100 Subject: [PATCH] Fixed the exception handler --- app/Exceptions/Handler.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 2cc435b7..689609cb 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,7 +2,6 @@ namespace App\Exceptions; -use Exception; use Symfony\Component\HttpKernel\Exception\HttpException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; @@ -22,10 +21,10 @@ class Handler extends ExceptionHandler * * This is a great spot to send exceptions to Sentry, Bugsnag, etc. * - * @param \Exception $e + * @param \Throwable $e * @return void */ - public function report(Exception $e) + public function report($e) { return parent::report($e); } @@ -34,10 +33,10 @@ class Handler extends ExceptionHandler * Render an exception into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $e + * @param \Throwable $e * @return \Illuminate\Http\Response */ - public function render($request, Exception $e) + public function render($request, $e) { return parent::render($request, $e); }