You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+4
Original file line number
Diff line number
Diff line change
@@ -41,3 +41,7 @@ $foo->doSomething();
41
41
#### To Do
42
42
43
43
-[ ] If the PR is not complete but you want to discuss the approach, list what remains to be done here
44
+
45
+
#### Note
46
+
47
+
The CI runs the integration tests with all implementations. It is normal that not all tests succeed. When adding test cases, please check the output if the new test fails and if so report it to the affected implementations.
@@ -46,11 +52,23 @@ protected function buildUri($uri)
46
52
}
47
53
48
54
if (class_exists(SlimUri::class)) {
55
+
if (class_exists(SlimUriFactory::class)) {
56
+
return (newSlimUriFactory())->createUri($uri);
57
+
}
58
+
49
59
return SlimUri::createFromString($uri);
50
60
}
51
61
52
-
if (class_exists(ZendUri::class)) {
53
-
returnnewZendUri($uri);
62
+
if (class_exists(LaminasUri::class)) {
63
+
returnnewLaminasUri($uri);
64
+
}
65
+
66
+
if (class_exists(NyholmFactory::class)) {
67
+
return (newNyholmFactory())->createUri($uri);
68
+
}
69
+
70
+
if (class_exists(RingCentralUri::class)) {
71
+
returnnewRingCentralUri($uri);
54
72
}
55
73
56
74
thrownew \RuntimeException('Could not create URI. Check your config');
@@ -67,9 +85,9 @@ protected function buildStream($data)
67
85
if ($factoryinstanceof \Psr\Http\Message\StreamFactoryInterface) {
68
86
if (is_string($data)) {
69
87
return$factory->createStream($data);
70
-
} else {
71
-
return$factory->createStreamFromResource($data);
72
88
}
89
+
90
+
return$factory->createStreamFromResource($data);
73
91
}
74
92
75
93
thrownew \RuntimeException('Constant "STREAM_FACTORY" must be a reference to a Http\Message\StreamFactory or \Psr\Http\Message\StreamFactoryInterface');
@@ -79,8 +97,26 @@ protected function buildStream($data)
79
97
return \GuzzleHttp\Psr7\Utils::streamFor($data);
80
98
}
81
99
82
-
if (class_exists(ZendStream::class)) {
83
-
returnnewZendStream($data);
100
+
$factory = null;
101
+
if (class_exists(LaminasStreamFactory::class)) {
102
+
$factory = newLaminasStreamFactory();
103
+
}
104
+
if (class_exists(NyholmFactory::class)) {
105
+
$factory = newNyholmFactory();
106
+
}
107
+
if (class_exists(SlimStreamFactory::class)) {
108
+
$factory = newSlimStreamFactory();
109
+
}
110
+
if ($factory) {
111
+
if (is_string($data)) {
112
+
return$factory->createStream($data);
113
+
}
114
+
115
+
return$factory->createStreamFromResource($data);
116
+
}
117
+
118
+
if (function_exists('ring_central_stream_for')) {
119
+
returnring_central_stream_for($data);
84
120
}
85
121
86
122
thrownew \RuntimeException('Could not create Stream. Check your config');
@@ -104,8 +140,20 @@ protected function buildUploadableFile($data)
0 commit comments