Shift to Throwable

This commit is contained in:
Laravel Shift 2021-02-14 18:57:24 +00:00
parent a6f58f867f
commit f639c5653e

View file

@ -20,6 +20,7 @@
namespace App\Exceptions; namespace App\Exceptions;
use Throwable;
use Exception; use Exception;
use GrahamCampbell\Exceptions\ExceptionHandler; use GrahamCampbell\Exceptions\ExceptionHandler;
use Illuminate\Auth\AuthenticationException; use Illuminate\Auth\AuthenticationException;
@ -53,7 +54,7 @@ class Handler extends ExceptionHandler
* @param \Exception $e * @param \Exception $e
* @return void * @return void
*/ */
public function report(Exception $e) public function report(Throwable $e)
{ {
parent::report($e); parent::report($e);
} }
@ -65,7 +66,7 @@ class Handler extends ExceptionHandler
* @param \Exception $e * @param \Exception $e
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function render($request, Exception $e) public function render($request, Throwable $e)
{ {
return parent::render($request, $e); return parent::render($request, $e);
} }