Fix phpstan errors

This commit is contained in:
Timothy Warren 2023-03-16 16:22:31 -04:00
parent 9690e3f4b3
commit cef8d2c944
2 changed files with 3 additions and 5 deletions

View File

@ -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"

View File

@ -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