From cef8d2c9445277a89fff404368dcb542fec8895e Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Thu, 16 Mar 2023 16:22:31 -0400 Subject: [PATCH] Fix phpstan errors --- composer.json | 2 +- phpstan.neon | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index b994382..4fe9717 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/phpstan.neon b/phpstan.neon index b92bf3e..8858830 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -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