@@ -99,7 +99,8 @@ abstract class AbstractProvider
99
99
/**
100
100
* The options given to the Guzzle6 client
101
101
* @var array
102
- * @deprecated These are to be removed in the next major release. These options are only used in getHttpClient to keep BC.
102
+ * @deprecated These are to be removed in the next major release.
103
+ * These options are only used in getHttpClient to keep BC.
103
104
*/
104
105
private $ guzzle6Options = [];
105
106
@@ -223,7 +224,7 @@ public function setHttpClient($client)
223
224
if ($ client instanceof GuzzleClientInterface) {
224
225
trigger_error (
225
226
sprintf (
226
- 'Passing a "%s" to "%s::setHttpClient" is deprecated. Please use a "Http\Client\HttpClient" instead. ' ,
227
+ 'Passing a "%s" to "%s::setHttpClient" is deprecated. Use a "Http\Client\HttpClient" instead. ' ,
227
228
GuzzleClientInterface::class,
228
229
static ::class
229
230
),
@@ -245,8 +246,9 @@ public function setHttpClient($client)
245
246
$ type = is_object ($ client ) ? get_class ($ client ) : gettype ($ client );
246
247
throw new \RuntimeException (
247
248
sprintf (
248
- 'First parameter to "%s::setHttpClient" was expected to be a "Http\Client\HttpClient ", you provided a "%s" ' ,
249
+ 'First parameter to "%s::setHttpClient" was expected to be a "%s ", you provided a "%s" ' ,
249
250
static ::class,
251
+ HttpClient::class,
250
252
$ type
251
253
)
252
254
);
@@ -289,7 +291,8 @@ public function getHttpClient()
289
291
290
292
if (!class_exists (GuzzleClient::class)) {
291
293
throw new \RuntimeException (
292
- 'You must install "php-http/guzzle6-adapter" to be able to use "%s::getHttplugClient". ' , static ::class
294
+ 'You must install "php-http/guzzle6-adapter" to be able to use "%s::getHttplugClient". ' ,
295
+ static ::class
293
296
);
294
297
}
295
298
@@ -955,7 +958,7 @@ private function getHttpClientFromOptions(array $options, array $collaborators)
955
958
956
959
if (!class_exists (HttplugGuzzle6::class)) {
957
960
throw new \RuntimeException (
958
- 'You must install "php-http/guzzle6-adapter" to be able to pass a Guzzle6 client with "httpClient" option. '
961
+ 'You must install "php-http/guzzle6-adapter" to pass a Guzzle6 client with the "httpClient" option. '
959
962
);
960
963
}
961
964
0 commit comments