diff --git a/app/Exceptions/Handler.php b/app/Exceptions/Handler.php index 70b3a61..c90eb58 100644 --- a/app/Exceptions/Handler.php +++ b/app/Exceptions/Handler.php @@ -2,7 +2,7 @@ namespace App\Exceptions; -use Exception; +use Throwable; use Illuminate\Auth\Access\AuthorizationException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Validation\ValidationException; @@ -28,10 +28,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); } @@ -40,10 +40,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|\Illuminate\Http\JsonResponse */ - public function render($request, Exception $exception) + public function render($request, Throwable $exception) { return parent::render($request, $exception); } diff --git a/composer.json b/composer.json index 1117fc2..4a75fe1 100644 --- a/composer.json +++ b/composer.json @@ -5,15 +5,15 @@ "license": "MIT", "type": "project", "require": { - "php": "^7.2", - "easyrdf/easyrdf": "^1.0.0", - "laravel/lumen-framework": "^6.0", + "php": "^7.3|^8.0", + "easyrdf/easyrdf": "^1.1.0", + "laravel/lumen-framework": "^8.0", "ml/json-ld": "^1.1" }, "require-dev": { - "fzaninotto/faker": "^1.4", - "phpunit/phpunit": "^8.0", - "mockery/mockery": "^1.0" + "fzaninotto/faker": "^1.9.1", + "phpunit/phpunit": "^9.0", + "mockery/mockery": "^1.2.1" }, "autoload": { "classmap": [