Add phpstan with config set to max

This commit is contained in:
Roy Verrips 2022-01-07 11:52:46 -06:00 committed by Josh Sherman
parent 63a52c853b
commit 6e973db521
2 changed files with 16 additions and 1 deletions

View file

@ -19,7 +19,8 @@
"php": ">=5.3"
},
"require-dev": {
"phpunit/phpunit": "^4.8.36 || ^9.0"
"phpunit/phpunit": "^4.8.36 || ^9.0",
"phpstan/phpstan": "^1.3"
},
"autoload": {
"psr-4": {

14
phpstan.neon Normal file
View file

@ -0,0 +1,14 @@
parameters:
paths:
- src
# The level 8 is the highest level
level: max
excludePaths:
- ./*/*/FileToBeExcluded.php
checkMissingIterableValueType: true
#editorUrl: 'vscode://file/%%file%%:%%line%%'