Fix phpstan errors
This commit is contained in:
parent
9690e3f4b3
commit
cef8d2c944
@ -54,7 +54,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vendor/bin/phpunit -c build --no-coverage",
|
"test": "vendor/bin/phpunit -c build --no-coverage",
|
||||||
"docs": "php tools/phpDocumentor run --sourcecode",
|
"docs": "tools/phpdocumentor run --sourcecode",
|
||||||
"coverage": "php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude=\"~vendor~\" ./vendor/bin/phpunit -c build",
|
"coverage": "php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude=\"~vendor~\" ./vendor/bin/phpunit -c build",
|
||||||
"phpstan": "tools/vendor/bin/phpstan analyse src tests",
|
"phpstan": "tools/vendor/bin/phpstan analyse src tests",
|
||||||
"ci:phpstan": "tools/vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi --error-format=checkstyle > ./build/logs/phpstan.log"
|
"ci:phpstan": "tools/vendor/bin/phpstan analyse -c phpstan.neon -n --no-progress --no-ansi --error-format=checkstyle > ./build/logs/phpstan.log"
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
parameters:
|
parameters:
|
||||||
checkGenericClassInNonGenericObjectType: false
|
|
||||||
checkMissingIterableValueType: false
|
checkMissingIterableValueType: false
|
||||||
inferPrivatePropertyTypeFromConstructor: true
|
level: 9
|
||||||
level: 8
|
|
||||||
paths:
|
paths:
|
||||||
- src
|
- src
|
||||||
excludes_analyse:
|
excludePaths:
|
||||||
- tests
|
- tests
|
||||||
- vendor
|
- vendor
|
||||||
tmpDir: build/tmp
|
tmpDir: build/tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user