Skip to content

Commit

Permalink
Lumen 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Mar 26, 2020
1 parent b2098f1 commit f2a915a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
10 changes: 9 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ matrix:
fast_finish: true
include:
- php: 7.2
env: REPORT_TESTS_COVERAGE=1 CACHE_NAME=SWAGGER
env: CACHE_NAME=SWAGGER
- php: 7.2
env: SWAGGER_VERSION=3.0 CACHE_NAME=OPEN_API
- php: 7.3
env: CACHE_NAME=SWAGGER
- php: 7.3
env: SWAGGER_VERSION=3.0 CACHE_NAME=OPEN_API
- php: 7.4
env: REPORT_TESTS_COVERAGE=1 CACHE_NAME=SWAGGER
- php: 7.4
env: SWAGGER_VERSION=3.0 CACHE_NAME=OPEN_API
cache:
directories:
- "$HOME/.composer/cache"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Installation
5.5.x | 3 | 2.0 | ``` composer require "darkaonline/swagger-lume:5.5.*" ```
5.6 - 5.7 | 3 | 2.0, 3.0 | ``` composer require "darkaonline/swagger-lume:5.6.*" ```
6.0 | 3 | 2.0, 3.0 | ``` composer require "darkaonline/swagger-lume:6.*" ```
7.0 | 3 | 2.0, 3.0 | ``` composer require "darkaonline/swagger-lume:7.*" ```

- Open your `bootstrap/app.php` file and:

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
"require": {
"php": ">=7.2",
"laravel/lumen-framework": "~6.0",
"laravel/lumen-framework": "~6.0|~7.0",
"zircote/swagger-php": "~2.0|3.*",
"swagger-api/swagger-ui": "^3.0"
},
Expand All @@ -20,7 +20,7 @@
"phpunit/phpunit": "8.*",
"mockery/mockery": "1.*",
"satooshi/php-coveralls": "^2.0",
"vlucas/phpdotenv": "~3.3"
"vlucas/phpdotenv": "~3.3|~4.0"
},
"autoload": {
"files": [
Expand Down
6 changes: 3 additions & 3 deletions tests/ExceptionsHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Tests;

use Exception;
use Throwable;
use Laravel\Lumen\Exceptions\Handler;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
Expand Down Expand Up @@ -31,7 +31,7 @@ class ExceptionsHandler extends Handler
* @param \Exception $e
* @return void
*/
public function report(Exception $e)
public function report(Throwable $e)
{
parent::report($e);
}
Expand All @@ -43,7 +43,7 @@ public function report(Exception $e)
* @param \Exception $e
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $e)
public function render($request, Throwable $e)
{
return parent::render($request, $e);
}
Expand Down

0 comments on commit f2a915a

Please sign in to comment.