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": {
"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"

View File

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