-
Notifications
You must be signed in to change notification settings - Fork 186
/
phpstan.neon.dist
52 lines (51 loc) · 1.75 KB
/
phpstan.neon.dist
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-mockery/extension.neon
parameters:
tmpDir: var/cache/phpstan
level: 5
paths:
- ./src
- ./tests
# - ./examples TODO: Uncomment this once examples are updated
excludePaths:
- tests/TraceContext/W3CTestService
- tests/Unit/Config/SDK/Configuration/ExampleSdk
ignoreErrors:
-
message: "#Call to an undefined method .*#"
paths:
- tests/Unit/SDK/Common/Configuration/Resolver/PhpIniResolverTest.php
- tests/Unit/SDK/Common/Configuration/Resolver/CompositeResolverTest.php
-
message: "#Call to an undefined method .*:allows.*#"
paths:
- tests
-
message: "#Call to an undefined method .*:shouldReceive.*#"
paths:
- tests
-
message: "#Call to an undefined method .*:shouldHaveReceived.*#"
paths:
- tests
-
message: "#Call to an undefined method .*:expects.*#"
paths:
- tests
-
message: "#Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeParentInterface::.*#"
paths:
- src/Config/SDK
-
message: "#Cannot call method .* on null#"
paths:
- tests/Integration/SDK/Trace
-
message: "#Property .*Logger.*config .* does not accept .*Config?#"
paths:
- src/SDK/Logs
-
message: "#.*return with type T is not subtype.*#"
paths:
- src/SDK/Common/InstrumentationScope