mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 20:41:07 +03:30
feat: upgrading laravel version to 11 from 10
This commit is contained in:
@@ -4,7 +4,7 @@ namespace App\Exceptions;
|
||||
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
@@ -31,29 +31,29 @@ class Handler extends ExceptionHandler
|
||||
/**
|
||||
* Report or log an exception.
|
||||
*
|
||||
* @param Throwable $throwable
|
||||
* @param Throwable $e
|
||||
* @return void
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function report(Throwable $throwable)
|
||||
public function report(Throwable $e)
|
||||
{
|
||||
if (app()->bound('sentry') && $this->shouldReport($throwable)) {
|
||||
app('sentry')->captureException($throwable);
|
||||
if (app()->bound('sentry') && $this->shouldReport($e)) {
|
||||
app('sentry')->captureException($e);
|
||||
}
|
||||
|
||||
parent::report($throwable);
|
||||
parent::report($e);
|
||||
}
|
||||
|
||||
/**
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param Request $request
|
||||
* @param Throwable $throwable
|
||||
* @param Throwable $e
|
||||
* @return Response
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function render($request, Throwable $throwable): Response
|
||||
public function render($request, Throwable $e): Response
|
||||
{
|
||||
return parent::render($request, $throwable);
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user