diff options
author | Camil Staps | 2021-04-13 08:55:11 +0200 |
---|---|---|
committer | Camil Staps | 2021-04-13 08:55:11 +0200 |
commit | f9069b448306e95f92225d446cdd3ceed3872ca5 (patch) | |
tree | 3038b6d2d4aa94f4daa21898f40a0139a05978c7 | |
parent | Update to Laravel 6.0 (diff) |
Update to Laravel 7.0
-rw-r--r-- | app/Exceptions/Handler.php | 22 | ||||
-rw-r--r-- | composer.json | 9 |
2 files changed, 16 insertions, 15 deletions
diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 21c9784..e5bd8e2 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,14 +2,14 @@ namespace App\Exceptions; -use Exception; use Illuminate\Auth\AuthenticationException; use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; +use Throwable; class Handler extends ExceptionHandler { /** - * A list of the exception types that should not be reported. + * A list of the throwable types that should not be reported. * * @var array */ @@ -23,28 +23,28 @@ class Handler extends ExceptionHandler ]; /** - * Report or log an exception. + * Report or log a throwable. * - * This is a great spot to send exceptions to Sentry, Bugsnag, etc. + * This is a great spot to send throwables to Sentry, Bugsnag, etc. * - * @param \Exception $exception + * @param \Throwable $throwable * @return void */ - public function report(Exception $exception) + public function report(Throwable $throwable) { - parent::report($exception); + parent::report($throwable); } /** - * Render an exception into an HTTP response. + * Render a throwable into an HTTP response. * * @param \Illuminate\Http\Request $request - * @param \Exception $exception + * @param \Throwable $throwable * @return \Illuminate\Http\Response */ - public function render($request, Exception $exception) + public function render($request, Throwable $throwable) { - return parent::render($request, $exception); + return parent::render($request, $throwable); } /** diff --git a/composer.json b/composer.json index 10914b7..486d2f2 100644 --- a/composer.json +++ b/composer.json @@ -5,16 +5,17 @@ "license": "GPLv3", "type": "project", "require": { - "php": ">=7.2.0", + "php": ">=7.2.5", "fideloper/proxy": "^4.0", - "laravel/framework": "^6.0", - "doctrine/dbal": "^2.5" + "laravel/framework": "^7.0", + "doctrine/dbal": "^2.5", + "laravel/ui": "^2.0" }, "require-dev": { "filp/whoops": "~2.0", "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", - "phpunit/phpunit": "^7.0" + "phpunit/phpunit": "^8.5" }, "autoload": { "classmap": [ |