1 | <?php |
||
15 | class HttpClientRequestHandler implements RequestHandlerInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var Client |
||
19 | */ |
||
20 | protected $client; |
||
21 | |||
22 | /** |
||
23 | * HttpClientRequestHandler constructor. |
||
24 | * @param LoopInterface $loop |
||
25 | */ |
||
26 | public function __construct(LoopInterface $loop) |
||
30 | |||
31 | /** |
||
32 | * @param string $uri |
||
33 | * @return PromiseInterface |
||
34 | */ |
||
35 | public function get(string $uri): PromiseInterface |
||
40 | |||
41 | /** |
||
42 | * @param string $uri |
||
43 | * @param array $options |
||
44 | * @return PromiseInterface |
||
45 | */ |
||
46 | public function post(string $uri, array $options): PromiseInterface |
||
52 | |||
53 | /** |
||
54 | * @param Request $request |
||
55 | * @param mixed $data |
||
56 | * @return PromiseInterface |
||
57 | */ |
||
58 | public function processRequest(Request $request, $data = null) |
||
89 | } |
||
90 |
It seems like you are assigning to a variable which was imported through a
use
statement which was not imported by reference.For clarity, we suggest to use a different name or import by reference depending on whether you would like to have the change visibile in outer-scope.
Change not visible in outer-scope
Change visible in outer-scope