diff --git a/composer.json b/composer.json index 2f1dfe15..679143c2 100644 --- a/composer.json +++ b/composer.json @@ -59,7 +59,7 @@ "@lint:php" ], "phpstan": [ - "phpstan analyse --memory-limit=-1 src/ tests/ rector.php --ansi --no-progress" + "phpstan analyse --memory-limit=-1 --ansi --no-progress" ], "rector:check": [ "rector --dry-run --ansi --no-progress-bar" diff --git a/infection.json5 b/infection.json5 index 71c6ffe7..a85e42f5 100644 --- a/infection.json5 +++ b/infection.json5 @@ -8,5 +8,6 @@ "mutators": { "@default": true }, - "maxTimeouts": 0 + "maxTimeouts": 0, + "staticAnalysisTool": "phpstan" } diff --git a/phpstan.neon b/phpstan.neon index 944fe9a0..7d107cca 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,9 +5,13 @@ includes: - phar://vendor/phpstan/phpstan/phpstan.phar/conf/bleedingEdge.neon parameters: + paths: + - ./src + - ./tests + - ./rector.php level: max reportUnmatchedIgnoredErrors: false checkExplicitMixed: true - + ignoreErrors: - '#Dynamic call to static method PHPUnit\\Framework\\.*#'