Move PHPStan configuration to its file
This commit is contained in:
Родитель
0818b70edd
Коммит
57e84c07f2
|
@ -35,7 +35,7 @@ before_script:
|
|||
|
||||
script:
|
||||
- composer validate
|
||||
- if [[ $STATIC_ANALYSIS = true ]]; then ./vendor/bin/phpstan analyse src --level=2; fi
|
||||
- if [[ $STATIC_ANALYSIS = true ]]; then ./vendor/bin/phpstan analyse; fi
|
||||
- |
|
||||
if [[ $VALIDATION = true ]]; then
|
||||
./vendor/bin/phpunit --testsuite validation
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
parameters:
|
||||
level: 2
|
||||
paths:
|
||||
- src/
|
||||
ignoreErrors:
|
||||
# phpstan issue, see: https://github.com/phpstan/phpstan/issues/1306
|
||||
- "/Variable .unaryExpression might not be defined./"
|
||||
|
|
Загрузка…
Ссылка в новой задаче