Skip to content

Commit 293a099

Browse files
committed
Tweak PHPStan config.
1 parent fa49a29 commit 293a099

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

phpstan.neon

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
parameters:
22
level: 9
3+
tmpDir: build/phpstan
4+
resultCachePath: %currentWorkingDirectory%/build/phpstan/resultCache.php
35
paths:
46
- src
57
- tests
68
excludePaths:
79
- tests/Envs/*
810
ignoreErrors:
9-
-
10-
message: '#type has no value type specified in iterable type array#'
11-
path: tests/
12-
reportUnmatched: false
13-
-
14-
message: '#type has no value type specified in iterable type iterable#'
15-
path: tests/
16-
reportUnmatched: false
11+
# We don't need to be pedantic about iterable types in tests.
12+
- identifier: missingType.iterableValue
13+
paths:
14+
- tests/*
15+
reportUnmatched: false
16+
17+
# PHPStan doesn't understand PHPUnit's self-termination methods.
18+
- identifier: deadCode.unreachable
19+
paths:
20+
- tests/*
21+
reportUnmatched: false
22+
1723
# PHPStan is overly aggressive on readonly properties.
1824
-
1925
identifier: property.uninitializedReadonly

0 commit comments

Comments
 (0)