1 | <?php |
||
8 | class Request extends EventEmitter |
||
9 | { |
||
10 | /** @var React\Http\Request */ |
||
11 | public $httpRequest; |
||
12 | |||
13 | /** @var mixed */ |
||
14 | private $content; |
||
15 | |||
16 | /** @var array */ |
||
17 | private $data = []; |
||
18 | |||
19 | /** |
||
20 | * @param ReactHttpRequest $httpRequest |
||
21 | */ |
||
22 | public function __construct(ReactHttpRequest $httpRequest) |
||
26 | |||
27 | /** |
||
28 | * Set the raw data of the request |
||
29 | * @param mixed $content |
||
30 | */ |
||
31 | public function setContent($content) |
||
35 | |||
36 | /** |
||
37 | * Set the raw data of the request |
||
38 | * @param mixed $content |
||
39 | */ |
||
40 | public function getContent() |
||
44 | |||
45 | public function getHeaders() |
||
54 | |||
55 | public function parseData() |
||
98 | |||
99 | /** |
||
100 | * Set the data array |
||
101 | * @param array $data array of data |
||
102 | */ |
||
103 | public function setData($data) |
||
107 | |||
108 | /** |
||
109 | * Get the data array |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getData() |
||
116 | |||
117 | public function __get($name) |
||
121 | |||
122 | public function __set($name, $value) |
||
126 | } |
||
127 |
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..