Skip to content

Commit 565c186

Browse files
committed
feat: add phpstan to analyze
1 parent 1cb08d5 commit 565c186

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,16 @@
4646
},
4747
"require-dev": {
4848
"friendsofphp/php-cs-fixer": "^v3.37.1",
49-
"pestphp/pest": "^2.24"
49+
"nunomaduro/collision": "^7.10",
50+
"nunomaduro/larastan": "^2.6",
51+
"orchestra/testbench": "^8.14",
52+
"pestphp/pest": "^2.24",
53+
"phpstan/extension-installer": "^1.3",
54+
"phpstan/phpstan-deprecation-rules": "^1.1",
55+
"phpstan/phpstan-phpunit": "^1.3"
5056
},
5157
"scripts": {
58+
"analyse": "vendor/bin/phpstan analyse",
5259
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
5360
"post-install-cmd": [
5461
"bash vendor/cslant/telegram-git-notifier/install.sh"
@@ -70,7 +77,8 @@
7077
"config": {
7178
"sort-packages": true,
7279
"allow-plugins": {
73-
"pestphp/pest-plugin": true
80+
"pestphp/pest-plugin": true,
81+
"phpstan/extension-installer": true
7482
}
7583
},
7684
"minimum-stability": "dev",

phpstan-baseline.neon

Whitespace-only changes.

phpstan.neon.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
includes:
2+
- phpstan-baseline.neon
3+
4+
parameters:
5+
level: 9
6+
paths:
7+
- src
8+
- routes
9+
- config
10+
tmpDir: build/phpstan
11+
checkOctaneCompatibility: true
12+
checkModelProperties: true
13+
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)