-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathphpstan.neon
More file actions
38 lines (34 loc) · 1.58 KB
/
phpstan.neon
File metadata and controls
38 lines (34 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
parameters:
bootstrapFiles:
- src/PseudoTypes/False_.php
- src/PseudoTypes/True_.php
level: max
excludePaths:
- tests/benchmark/Assets/*
paths:
- src
- tests
ignoreErrors:
# We are intentionally using non-existing classes here
-
message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock not found#"
count: 1
path: tests/unit/Types/ContextFactoryTest.php
-
message: "#^Class phpDocumentor\\\\Reflection\\\\DocBlock\\\\Tag not found#"
count: 1
path: tests/unit/Types/ContextFactoryTest.php
# We are intentionally adding invalid parameters here
-
message: "#^Parameter \\#2 \\$typeClassName of method phpDocumentor\\\\Reflection\\\\TypeResolver\\:\\:addKeyword\\(\\) expects class\\-string\\<phpDocumentor\\\\Reflection\\\\Type\\>\\, string given\\.$#"
count: 2
path: tests/unit/TypeResolverTest.php
# We are intentionally adding invalid parameters here
-
message: "#^Parameter \\#1 \\$types of class phpDocumentor\\\\Reflection\\\\Types\\\\Compound constructor expects array\\<phpDocumentor\\\\Reflection\\\\Type\\>\\, array\\<int\\, string\\> given\\.$#"
count: 1
path: tests/unit/Types/CompoundTest.php
-
message: "#^Parameter \\#1 \\$objectOrClass of class ReflectionClass constructor expects class\\-string\\<Foo\\\\Bar\\>\\|Foo\\\\Bar\\, string given\\.$#"
count: 1
path: tests/unit/Types/ContextFactoryTest.php