This repository was archived by the owner on Jan 6, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Expand file tree Collapse file tree 1 file changed +4
-15
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ final class Client implements HttpClient, HttpAsyncClient
23
23
*/
24
24
private $ client ;
25
25
26
- /**
27
- * @param ClientInterface|null $client
28
- */
29
26
public function __construct (ClientInterface $ client = null )
30
27
{
31
28
if (!$ client ) {
@@ -36,13 +33,9 @@ public function __construct(ClientInterface $client = null)
36
33
}
37
34
38
35
/**
39
- * Factory method to create the guzzle 6 adapter with custom configuration for guzzle.
40
- *
41
- * @param array $config Configuration to create guzzle with.
42
- *
43
- * @return Client
36
+ * Factory method to create the Guzzle 6 adapter with custom Guzzle configuration.
44
37
*/
45
- public static function createWithConfig (array $ config )
38
+ public static function createWithConfig (array $ config ): Client
46
39
{
47
40
return new self (self ::buildClient ($ config ));
48
41
}
@@ -68,13 +61,9 @@ public function sendAsyncRequest(RequestInterface $request)
68
61
}
69
62
70
63
/**
71
- * Build the guzzle client instance.
72
- *
73
- * @param array $config Additional configuration
74
- *
75
- * @return GuzzleClient
64
+ * Build the Guzzle client instance.
76
65
*/
77
- private static function buildClient (array $ config = [])
66
+ private static function buildClient (array $ config = []): GuzzleClient
78
67
{
79
68
$ handlerStack = new HandlerStack (\GuzzleHttp \choose_handler ());
80
69
$ handlerStack ->push (Middleware::prepareBody (), 'prepare_body ' );
You can’t perform that action at this time.
0 commit comments