Skip to content

Commit 7d6e30b

Browse files
committed
feat: install Larastan
1 parent 8a16ed6 commit 7d6e30b

File tree

3 files changed

+264
-1
lines changed

3 files changed

+264
-1
lines changed

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"laravel/sail": "^1.18",
1818
"mockery/mockery": "^1.4.4",
1919
"nunomaduro/collision": "^7.0",
20+
"nunomaduro/larastan": "^2.0",
2021
"phpunit/phpunit": "^10.1",
2122
"spatie/laravel-ignition": "^2.0"
2223
},
@@ -40,6 +41,8 @@
4041
"pint-dirty": "./vendor/bin/pint --dirty",
4142
"pint-test": "./vendor/bin/pint --test",
4243
"pint-test-dirty": "./vendor/bin/pint --test --dirty",
44+
"analyse": "./vendor/bin/phpstan analyse --memory-limit=2G",
45+
"analyse-baseline": "./vendor/bin/phpstan analyse --generate-baseline phpstan-baseline.php --memory-limit=2G",
4346
"post-autoload-dump": [
4447
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
4548
"@php artisan package:discover --ansi"

composer.lock

+246-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
includes:
2+
- ./vendor/nunomaduro/larastan/extension.neon
3+
4+
parameters:
5+
paths:
6+
- app/
7+
- config/
8+
9+
excludePaths:
10+
- tests
11+
12+
# Level 9 is the highest level
13+
level: 5
14+
15+
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)