Skip to content

Commit ad6c223

Browse files
committed
Laravel 7
1 parent 9096469 commit ad6c223

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
fail-fast: true
1111
matrix:
1212
php: [7.2, 7.3, 7.4]
13-
laravel: [^6.0]
13+
laravel: [^7.0]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:
16-
- laravel: ^6.0
17-
testbench: ^4.0
16+
- laravel: ^7.0
17+
testbench: ^5.0
1818

1919
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2020

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
}
1212
],
1313
"require": {
14-
"php": "^7.2",
15-
"laravel/framework": "^6.0"
14+
"php": "^7.2.5",
15+
"laravel/framework": "^7.0"
1616
},
1717
"require-dev": {
18-
"orchestra/testbench": "^4.0",
18+
"orchestra/testbench": "^5.0",
1919
"phpunit/phpunit": "^8.0"
2020
},
2121
"autoload": {

src/ExceptionHandler.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace iMemento\Exceptions\Laravel;
44

55
use Exception;
6+
use Throwable;
67
use Illuminate\Auth\AuthenticationException;
78
use Illuminate\Contracts\Container\Container;
89
use Illuminate\Contracts\Support\Responsable;
@@ -41,7 +42,7 @@ public function __construct(Container $container)
4142
}
4243

4344

44-
public function report(Exception $e)
45+
public function report(Throwable $e)
4546
{
4647
if ($this->shouldntReport($e)) {
4748
return;
@@ -66,7 +67,7 @@ public function report(Exception $e)
6667
);
6768
}
6869

69-
public function render($request, Exception $e)
70+
public function render($request, Throwable $e)
7071
{
7172
if (method_exists($e, 'render') && $response = $e->render($request)) {
7273
return Router::toResponse($request, $response);

0 commit comments

Comments
 (0)