diff --git a/.github/workflows/analysis.yml b/.github/workflows/analysis.yml index 018789a..e38f48e 100644 --- a/.github/workflows/analysis.yml +++ b/.github/workflows/analysis.yml @@ -58,4 +58,4 @@ jobs: run: composer install --no-progress --no-interaction - name: Static Analysis - run: ./vendor/bin/phpstan analyse --no-progress --error-format=github --level 6 src tests + run: ./vendor/bin/phpstan analyse --no-progress --error-format=github diff --git a/composer.json b/composer.json index 52b2e0f..e220c33 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ ], "cs-check": "phpcs", "cs-fix": "phpcbf", - "static-analysis": "phpstan analyse --level 6 src tests", + "static-analysis": "phpstan analyse", "test": "phpunit --colors=always", "test-coverage": [ "@putenv XDEBUG_MODE=coverage", diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..fe8c874 --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,5 @@ +parameters: + level: 6 + paths: + - src + - tests\unit