Laravel 7.0
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Throwable;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
|
||||
class Handler extends ExceptionHandler {
|
||||
@ -30,10 +30,10 @@ class Handler extends ExceptionHandler {
|
||||
*
|
||||
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
||||
*
|
||||
* @param \Exception $exception
|
||||
* @param \Throwable $exception
|
||||
* @return void
|
||||
*/
|
||||
public function report(Exception $exception) {
|
||||
public function report(Throwable $exception) {
|
||||
parent::report($exception);
|
||||
}
|
||||
|
||||
@ -41,10 +41,10 @@ class Handler extends ExceptionHandler {
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
* @param \Throwable $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function render($request, Exception $exception) {
|
||||
public function render($request, Throwable $exception) {
|
||||
return parent::render($request, $exception);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user