Fix phpstan errors
This commit is contained in:
parent
9690e3f4b3
commit
cef8d2c944
@ -54,7 +54,7 @@
|
||||
],
|
||||
"scripts": {
|
||||
"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",
|
||||
"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"
|
||||
|
@ -1,11 +1,9 @@
|
||||
parameters:
|
||||
checkGenericClassInNonGenericObjectType: false
|
||||
checkMissingIterableValueType: false
|
||||
inferPrivatePropertyTypeFromConstructor: true
|
||||
level: 8
|
||||
level: 9
|
||||
paths:
|
||||
- src
|
||||
excludes_analyse:
|
||||
excludePaths:
|
||||
- tests
|
||||
- vendor
|
||||
tmpDir: build/tmp
|
||||
|
Loading…
Reference in New Issue
Block a user