Skip to content

Commit b44ab83

Browse files
committed
Parametrize PHPStan build in config file
1 parent 6693f56 commit b44ab83

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949
},
5050
"scripts": {
51-
"phpstan": "vendor/bin/phpstan analyse src test --level 7 -c phpstan.neon",
51+
"phpstan": "vendor/bin/phpstan analyse",
5252
"cs-check": "vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
5353
"cs-fix": "vendor/bin/php-cs-fixer fix --verbose --diff"
5454
},

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
parameters:
2+
level: 7
3+
paths:
4+
- src/
5+
- test/
26
ignoreErrors:
37
- '/Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent/'
48
- '/Call to an undefined method Symfony\\Component\\Console\\Event\\ConsoleEvent::getExitCode\(\)\./'

0 commit comments

Comments
 (0)