Skip to content

Commit 11d4d3f

Browse files
committed
Add phpstan
1 parent f8c8efb commit 11d4d3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
},
1818
"require-dev": {
1919
"phpunit/phpunit": "^7|^9",
20-
"squizlabs/php_codesniffer": "^3.5"
20+
"squizlabs/php_codesniffer": "^3.5",
21+
"phpstan/phpstan": "^1.4"
2122
},
2223
"autoload": {
2324
"psr-4": {
@@ -31,6 +32,7 @@
3132
},
3233
"scripts": {
3334
"test": "phpunit",
35+
"analyse": "vendor/bin/phpstan analyse src tests --level=4",
3436
"check-style": "phpcs -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests",
3537
"fix-style": "phpcbf -p --standard=PSR12 --exclude=Generic.Files.LineLength --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 src tests"
3638
},

0 commit comments

Comments
 (0)