add phpstan

This commit is contained in:
Nicolas CARPi
2022-12-08 00:00:18 +01:00
parent f1e73aab3a
commit 79988ef58a
+5 -1
View File
@@ -21,7 +21,8 @@
},
"require-dev": {
"phpunit/phpunit": "@stable",
"friendsofphp/php-cs-fixer": "^3.13"
"friendsofphp/php-cs-fixer": "^3.13",
"phpstan/phpstan": "^1.9"
},
"suggest": {
"bacon/bacon-qr-code": "Needed for BaconQrCodeProvider provider",
@@ -38,6 +39,9 @@
}
},
"scripts": {
"phpstan": [
"phpstan analyze --xdebug lib tests testsDependency"
],
"lint": [
"php-cs-fixer fix -v"
],