1 | <?php declare(strict_types = 1); |
||
32 | class StreamAdapter extends AbstractClient implements StreamAdapterInterface |
||
33 | { |
||
34 | /** |
||
35 | * @var Browser |
||
36 | */ |
||
37 | private $browser; |
||
38 | |||
39 | /** |
||
40 | * @var Sender |
||
41 | */ |
||
42 | private $sender; |
||
43 | |||
44 | /** |
||
45 | * @var MessageFactory |
||
46 | */ |
||
47 | private $messages; |
||
48 | |||
49 | /** |
||
50 | * @var ExtEventLoop|LibEventLoop|LibEvLoop|StreamSelectLoop |
||
51 | */ |
||
52 | private $loop; |
||
53 | |||
54 | /** |
||
55 | * @var Client |
||
56 | */ |
||
57 | private $client; |
||
58 | |||
59 | /** |
||
60 | * HttpAdapter constructor. |
||
61 | * @param Client $client |
||
62 | * @param LoopInterface $loop |
||
63 | */ |
||
64 | public function __construct(Client $client, LoopInterface $loop) |
||
73 | |||
74 | /** |
||
75 | * @return LoopInterface |
||
76 | */ |
||
77 | public function getEventLoop(): LoopInterface |
||
81 | |||
82 | /** |
||
83 | * @param Route $route |
||
84 | * @return Observer |
||
85 | * @throws \InvalidArgumentException |
||
86 | */ |
||
87 | public function request(Route $route): Observer |
||
97 | |||
98 | /** |
||
99 | * @param Route $route |
||
100 | * @return Promise |
||
101 | * @throws \InvalidArgumentException |
||
102 | */ |
||
103 | private function promise(Route $route): Promise |
||
114 | |||
115 | /** |
||
116 | * @param ResponseInterface $response |
||
117 | * @param Observer $observer |
||
118 | */ |
||
119 | private function onConnect(ResponseInterface $response, Observer $observer) |
||
138 | } |
||
139 |
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..