Skip to content

Commit 3ac988f

Browse files
committed
[TASK] Allow assertInstanceOf calls in tests
We find those checks useful.
1 parent ce26af6 commit 3ac988f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config/phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,8 @@ parameters:
1919
null_over_false: true
2020
narrow_param: true
2121
narrow_return: true
22+
23+
ignoreErrors:
24+
-
25+
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
26+
path: '../tests/'

0 commit comments

Comments
 (0)