Skip to content

Commit 79aad8d

Browse files
committed
Setup PHPStan
1 parent 9d4083e commit 79aad8d

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

composer.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"php": "^8.1"
1919
},
2020
"require-dev": {
21-
"pestphp/pest": "^2.20",
21+
"larastan/larastan": "^2.9",
2222
"laravel/pint": "^1.0",
23+
"pestphp/pest": "^2.20",
2324
"spatie/ray": "^1.28"
2425
},
2526
"autoload": {
@@ -33,8 +34,9 @@
3334
}
3435
},
3536
"scripts": {
37+
"analyse": "vendor/bin/phpstan analyse",
3638
"test": "vendor/bin/pest",
37-
"test-coverage": "vendor/bin/pest --coverage",
39+
"test-coverage": "vendor/bin/pest --coverage",
3840
"format": "vendor/bin/pint"
3941
},
4042
"config": {

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
4+
parameters:
5+
level: max
6+
paths:
7+
- src
8+
tmpDir: build/phpstan

0 commit comments

Comments
 (0)