Skip to content

Commit 5b2e005

Browse files
committed
chore(phpstan): install and configure PHPStan
1 parent 28cae3c commit 5b2e005

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

composer.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,18 @@
99
"email": "nelson6e65@gmail.com"
1010
}
1111
],
12+
"scripts": {
13+
"cs:php": [
14+
"phpcs src/ -q --standard=Generic --sniffs=Generic.PHP.Syntax --colors",
15+
"phpstan analyze"
16+
]
17+
},
1218
"require": {
1319
"php": ">=7.2"
1420
},
1521
"require-dev": {
16-
"squizlabs/php_codesniffer": "^3.5"
22+
"squizlabs/php_codesniffer": "^3.5",
23+
"phpstan/phpstan": "^0.12.81",
24+
"composer/composer": "^2.0"
1725
}
1826
}

phpstan.neon

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
parameters:
2+
level: 2
3+
paths:
4+
- src
5+
6+
excludes_analyse:
7+
- vendor

0 commit comments

Comments
 (0)