Merge pull request #10 from Babibubebon/develop

Update Lumen v8
This commit is contained in:
Babibubebon 2021-11-22 03:16:25 +09:00 committed by GitHub
commit cb5e2fb57f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -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);
}

View file

@ -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": [