diff --git a/.gitignore b/.gitignore index 3f9bc5e..99361ac 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ .phpcs-cache -composer.phar composer.lock phpcs.xml phpstan.neon diff --git a/composer.json b/composer.json index 152bcdf..f33c497 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,6 @@ }, "scripts": { "lint" : "phpcs", - "static-analysis": "phpstan analyse --ansi -l 1 -c phpstan.neon.dist src tests" + "static-analysis": "phpstan analyse --ansi" } } diff --git a/phpstan.neon.dist b/phpstan.neon.dist index b2b86dc..b458ec3 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,3 +1,10 @@ +parameters: + level: 1 + + paths: + - %currentWorkingDirectory%/src + - %currentWorkingDirectory%/tests + includes: - vendor/phpstan/phpstan-phpunit/extension.neon - vendor/phpstan/phpstan-phpunit/rules.neon