Skip to content

Commit 43561b2

Browse files
Added phpstan ignoreErrors rules for optional dependency behavior.
1 parent 1f255c9 commit 43561b2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

phpstan.neon.dist

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,16 @@ parameters:
5454
-
5555
message: "#.*expects Google\\\\Protobuf\\\\RepeatedField.*#"
5656
paths:
57-
- src/Contrib/Otlp
57+
- src/Contrib/Otlp
58+
-
59+
message: "#^Call to (static )?method .* on an unknown class .*#"
60+
paths:
61+
- src/Config/SDK/Configuration/Environment/Adapter/
62+
-
63+
message: "#^Instantiated class .* not found\\.#"
64+
paths:
65+
- src/Config/SDK/Configuration/Environment/Adapter/
66+
-
67+
message: "#^Caught class .* not found\\.#"
68+
paths:
69+
- src/Config/SDK/Configuration/Environment/Adapter/

0 commit comments

Comments
 (0)