Skip to content

Commit a68c259

Browse files
committed
Adding PHPstan to the mix
1 parent b5b2caf commit a68c259

File tree

5 files changed

+244
-2
lines changed

5 files changed

+244
-2
lines changed

.husky/pre-commit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
./vendor/bin/pint
1+
./vendor/bin/pint
2+
./vendor/bin/phpstan analyse ./app

app/Http/Controllers/Settings/DeleteController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Http\Controllers\Settings;
44

55
use App\Http\Controllers\Controller;
6+
use Illuminate\Contracts\Auth\MustVerifyEmail;
67
use Illuminate\Http\RedirectResponse;
78
use Illuminate\Http\Request;
89
use Illuminate\Support\Facades\Auth;

app/Http/Controllers/Settings/PasswordController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Http\Controllers\Settings;
44

55
use App\Http\Controllers\Controller;
6+
use Illuminate\Contracts\Auth\MustVerifyEmail;
67
use Illuminate\Http\RedirectResponse;
78
use Illuminate\Http\Request;
89
use Illuminate\Support\Facades\Hash;

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
},
1818
"require-dev": {
1919
"fakerphp/faker": "^1.23",
20+
"larastan/larastan": "^3.0",
2021
"laravel/pail": "^1.1",
2122
"laravel/pint": "^1.18",
2223
"laravel/sail": "^1.26",

composer.lock

Lines changed: 239 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)