1 | <?php |
||
15 | final class GuzzleAdapter implements AdapterInterface |
||
16 | { |
||
17 | /** |
||
18 | * Collection of Promise\PromiseInterface instances with keys matching what was given from start(). |
||
19 | * |
||
20 | * @var array |
||
21 | */ |
||
22 | private $promises = []; |
||
23 | |||
24 | /** |
||
25 | * Collection of Api\Response with keys matching what was given from start(). |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | private $responses = []; |
||
30 | |||
31 | /** |
||
32 | * Collection of \Exception with keys matching what was given from start(). |
||
33 | * |
||
34 | * @var ArrayObject |
||
35 | */ |
||
36 | private $exceptions; |
||
37 | |||
38 | /** |
||
39 | * @var \Guzzle\Http\Client |
||
40 | */ |
||
41 | private $client; |
||
42 | |||
43 | public function __construct(GuzzleClient $client = null) |
||
53 | |||
54 | /** |
||
55 | * @see AdapterInterface::start() |
||
56 | */ |
||
57 | public function start(Request $request) : string |
||
71 | |||
72 | /** |
||
73 | * @see Adapter::end() |
||
74 | * |
||
75 | * @throws \InvalidArgumentException |
||
76 | */ |
||
77 | public function end(string $endHandle) : Response |
||
116 | |||
117 | /** |
||
118 | * Helper method to execute all guzzle promises. |
||
119 | * |
||
120 | * @param array $promises |
||
121 | * @param array $exceptions |
||
122 | * |
||
123 | * @return array Array of fulfilled PSR7 responses. |
||
124 | */ |
||
125 | private function fulfillPromises(array $promises, ArrayObject $exceptions) : array |
||
144 | } |
||
145 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..