Skip to content

Commit 5c50706

Browse files
Ignore errors caused by defensive programming
1 parent e1d9411 commit 5c50706

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

phpstan.neon

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@ parameters:
44
- src
55
- tests/tests
66
- tests/bootstrap.php
7+
8+
treatPhpDocTypesAsCertain: false
9+
10+
ignoreErrors:
11+
# Ignore errors caused by defensive programming
12+
- '#Call to function assert\(\) with true will always evaluate to true.#'
13+
- '#Call to method .* will always evaluate to true.#'
14+
- '#Call to method .* will always evaluate to false.#'
15+
- '#Instanceof between .* and .* will always evaluate to true.#'

0 commit comments

Comments
 (0)