Skip to content

Commit 7f45726

Browse files
committed
Ignore missing classes
The classes are part of a testcase
1 parent 1ec4537 commit 7f45726

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

phpstan.neon

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ parameters:
99
- src
1010
- tests
1111
ignoreErrors:
12+
# We are intentionally using non-existing classes here
13+
14+
-
15+
message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock not found#"
16+
count: 1
17+
path: tests/unit/Types/ContextFactoryTest.php
18+
-
19+
message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock\\\\Tag not found#"
20+
count: 1
21+
path: tests/unit/Types/ContextFactoryTest.php
22+
1223
# We are intentionally adding invalid parameters here
1324
-
1425
message: "#^Parameter \\#2 \\$typeClassName of method phpDocumentor\\\\Reflection\\\\TypeResolver\\:\\:addKeyword\\(\\) expects class\\-string\\<phpDocumentor\\\\Reflection\\\\Type\\>\\, string given\\.$#"

0 commit comments

Comments
 (0)