1 | <?php |
||
30 | class StreamAdapter extends AbstractClient implements StreamAdapterInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var Browser |
||
34 | */ |
||
35 | private $browser; |
||
36 | |||
37 | /** |
||
38 | * @var ExtEventLoop|LibEventLoop|LibEvLoop|StreamSelectLoop |
||
39 | */ |
||
40 | private $loop; |
||
41 | |||
42 | /** |
||
43 | * @var Client |
||
44 | */ |
||
45 | private $client; |
||
46 | |||
47 | /** |
||
48 | * HttpAdapter constructor. |
||
49 | * @param Client $client |
||
50 | * @param LoopInterface $loop |
||
51 | */ |
||
52 | public function __construct(Client $client, LoopInterface $loop) |
||
58 | |||
59 | /** |
||
60 | * @return LoopInterface |
||
61 | */ |
||
62 | public function getEventLoop(): LoopInterface |
||
66 | |||
67 | /** |
||
68 | * @param Route $route |
||
69 | * @return Observer |
||
70 | * @throws \InvalidArgumentException |
||
71 | */ |
||
72 | public function request(Route $route): Observer |
||
82 | |||
83 | /** |
||
84 | * @param Route $route |
||
85 | * @return Promise |
||
86 | * @throws \InvalidArgumentException |
||
87 | */ |
||
88 | private function promise(Route $route): Promise |
||
99 | |||
100 | /** |
||
101 | * @param ResponseInterface $response |
||
102 | * @param Observer $observer |
||
103 | */ |
||
104 | private function onConnect(ResponseInterface $response, Observer $observer) |
||
123 | } |
||
124 |
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..