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: src/BaseTest.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -30,15 +30,15 @@ protected function buildUri($uri)
30
30
if ($factoryinstanceof \Http\Message\UriFactory) {
31
31
return$factory->createUri($uri);
32
32
}
33
-
if ($factoryinstanceof \Interop\Http\Factory\UriFactoryInterface) {
33
+
if ($factoryinstanceof \Psr\Http\Message\UriFactoryInterface) {
34
34
if ($uriinstanceof UriInterface) {
35
35
return$uri;
36
36
}
37
37
38
38
return$factory->createUri($uri);
39
39
}
40
40
41
-
thrownew \RuntimeException('Constant "URI_FACTORY" must be a reference to a Http\Message\UriFactory or \Interop\Http\Factory\UriFactoryInterface');
41
+
thrownew \RuntimeException('Constant "URI_FACTORY" must be a reference to a Http\Message\UriFactory or \Psr\Http\Message\UriFactoryInterface');
42
42
}
43
43
44
44
if (class_exists(GuzzleUri::class)) {
@@ -64,15 +64,15 @@ protected function buildStream($data)
64
64
if ($factoryinstanceof \Http\Message\StreamFactory) {
65
65
return$factory->createStream($data);
66
66
}
67
-
if ($factoryinstanceof \Interop\Http\Factory\StreamFactoryInterface) {
67
+
if ($factoryinstanceof \Psr\Http\Message\StreamFactoryInterface) {
68
68
if (is_string($data)) {
69
69
return$factory->createStream($data);
70
70
} else {
71
71
return$factory->createStreamFromResource($data);
72
72
}
73
73
}
74
74
75
-
thrownew \RuntimeException('Constant "STREAM_FACTORY" must be a reference to a Http\Message\StreamFactory or \Interop\Http\Factory\StreamFactoryInterface');
75
+
thrownew \RuntimeException('Constant "STREAM_FACTORY" must be a reference to a Http\Message\StreamFactory or \Psr\Http\Message\StreamFactoryInterface');
76
76
}
77
77
78
78
if (class_exists(GuzzleStream::class)) {
@@ -91,8 +91,8 @@ protected function buildUploadableFile($data)
91
91
if (defined('UPLOADED_FILE_FACTORY')) {
92
92
$factoryClass = UPLOADED_FILE_FACTORY;
93
93
$factory = new$factoryClass();
94
-
if (!$factoryinstanceof \Interop\Http\Factory\UploadedFileFactoryInterface) {
95
-
thrownew \RuntimeException('Constant "UPLOADED_FILE_FACTORY" must be a reference to a Interop\Http\Factory\UploadedFileFactoryInterface');
94
+
if (!$factoryinstanceof \Psr\Http\Message\UploadedFileFactoryInterface) {
95
+
thrownew \RuntimeException('Constant "UPLOADED_FILE_FACTORY" must be a reference to a Psr\Http\Message\UploadedFileFactoryInterface');
0 commit comments