mirror of
https://github.com/Babibubebon/lodfe.git
synced 2024-09-22 17:34:19 +09:00
commit
cb5e2fb57f
2 changed files with 11 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue