Skip to content

Commit ecda1d7

Browse files
committed
Update to Laravel 7.*
1 parent f71ddd5 commit ecda1d7

File tree

4 files changed

+1917
-787
lines changed

4 files changed

+1917
-787
lines changed

app/Exceptions/Handler.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace App\Exceptions;
44

5-
use Exception;
65
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Throwable;
77

88
class Handler extends ExceptionHandler
99
{
@@ -29,10 +29,12 @@ class Handler extends ExceptionHandler
2929
/**
3030
* Report or log an exception.
3131
*
32-
* @param \Exception $exception
32+
* @param \Throwable $exception
3333
* @return void
34+
*
35+
* @throws \Exception
3436
*/
35-
public function report(Exception $exception)
37+
public function report(Throwable $exception)
3638
{
3739
parent::report($exception);
3840
}
@@ -41,10 +43,12 @@ public function report(Exception $exception)
4143
* Render an exception into an HTTP response.
4244
*
4345
* @param \Illuminate\Http\Request $request
44-
* @param \Exception $exception
45-
* @return \Illuminate\Http\Response
46+
* @param \Throwable $exception
47+
* @return \Symfony\Component\HttpFoundation\Response
48+
*
49+
* @throws \Throwable
4650
*/
47-
public function render($request, Exception $exception)
51+
public function render($request, Throwable $exception)
4852
{
4953
return parent::render($request, $exception);
5054
}

composer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
],
99
"license": "MIT",
1010
"require": {
11-
"php": "^7.2",
11+
"php": "^7.2.5",
1212
"fideloper/proxy": "^4.0",
13-
"laravel/framework": "^6.2",
13+
"laravel/framework": "^7.0",
1414
"laravel/passport": "^8.3",
15-
"laravel/tinker": "^2.0"
15+
"laravel/tinker": "^2.0",
16+
"laravel/ui": "^2.0"
1617
},
1718
"require-dev": {
18-
"facade/ignition": "^1.4",
19+
"facade/ignition": "^2.0",
1920
"fzaninotto/faker": "^1.4",
2021
"mockery/mockery": "^1.0",
21-
"nunomaduro/collision": "^3.0",
22-
"phpunit/phpunit": "^8.0"
22+
"nunomaduro/collision": "^4.1",
23+
"phpunit/phpunit": "^8.5"
2324
},
2425
"config": {
2526
"optimize-autoloader": true,

0 commit comments

Comments
 (0)