From a3264c5a3897531883cc51fed7fa920a90938ef3 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 17 Dec 2024 10:02:19 +0100 Subject: [PATCH] [TASK] Allow `assertInstanceOf` calls in tests We find those checks useful. --- config/phpstan.neon | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/phpstan.neon b/config/phpstan.neon index 06ce70f2..44041dc5 100644 --- a/config/phpstan.neon +++ b/config/phpstan.neon @@ -19,3 +19,8 @@ parameters: null_over_false: true narrow_param: true narrow_return: true + + ignoreErrors: + - + message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#' + path: '../tests/'