From b5b27c95b164d34edd2c8d3fa4327e157687813d Mon Sep 17 00:00:00 2001 From: Jeremiah VALERIE Date: Fri, 31 Aug 2018 10:55:59 +0200 Subject: [PATCH] Also check tests folder --- composer.json | 5 +++-- phpstan.neon | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index aa9fd95..af85fb9 100644 --- a/composer.json +++ b/composer.json @@ -15,8 +15,9 @@ }, "require-dev": { "doctrine/coding-standard": "^4.0", + "phpstan/phpstan": "^0.10.3", + "phpstan/phpstan-phpunit": "^0.10.0", "phpunit/phpunit": "^7.2", - "phpstan/phpstan-shim": "^0.10", "psr/http-message": "^1.0", "react/promise": "2.*" }, @@ -42,6 +43,6 @@ }, "scripts": { "lint" : "phpcs", - "static-analysis": "@php ./vendor/bin/phpstan.phar analyse --ansi -l 1 -c phpstan.neon src" + "static-analysis": "@php ./vendor/bin/phpstan analyse --ansi -l 1 -c phpstan.neon src tests" } } diff --git a/phpstan.neon b/phpstan.neon index e69de29..b2b86dc 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -0,0 +1,3 @@ +includes: + - vendor/phpstan/phpstan-phpunit/extension.neon + - vendor/phpstan/phpstan-phpunit/rules.neon