From d9cdc2bac6e19dd22075b8c39fb57f5d2c979a47 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 21 Apr 2023 23:14:56 +0100 Subject: [PATCH] fix(phpstan): ignore test files by default --- templates/php/phpstan.neon.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/php/phpstan.neon.twig b/templates/php/phpstan.neon.twig index 2d2fc9f..53dabfd 100644 --- a/templates/php/phpstan.neon.twig +++ b/templates/php/phpstan.neon.twig @@ -2,7 +2,10 @@ parameters: level: {{ php.phpstan.level }} + ignorePaths: + - *Test.php + - *TestBase.php paths: {% for path in php.phpstan.paths | default(["src"]) -%} - {{ path }} - {% endfor %} + {%- endfor %}