Skip to content

Commit 938c2f6

Browse files
Added phpstan ignoreErrors rules for optional dependency behavior.
1 parent 21e4902 commit 938c2f6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

phpstan.neon.dist

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,19 @@ parameters:
5050
-
5151
message: "#.*return with type T is not subtype.*#"
5252
paths:
53-
- src/SDK/Common/InstrumentationScope
53+
- src/SDK/Common/InstrumentationScope
54+
55+
-
56+
message: "#^Call to (static )?method .* on an unknown class .*#"
57+
paths:
58+
- src/Config/SDK/Configuration/Environment/Adapter/
59+
60+
-
61+
message: "#^Instantiated class .* not found\\.#"
62+
paths:
63+
- src/Config/SDK/Configuration/Environment/Adapter/
64+
65+
-
66+
message: "#^Caught class .* not found\\.#"
67+
paths:
68+
- src/Config/SDK/Configuration/Environment/Adapter/

0 commit comments

Comments
 (0)