| 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 | /** |
||
| 56 | * Set the data array |
||
| 57 | * @param array $data array of data |
||
| 58 | */ |
||
| 59 | public function setData($data) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Get the data array |
||
| 66 | * @return array |
||
| 67 | */ |
||
| 68 | public function getData() |
||
| 76 | |||
| 77 | public function __set($name, $value) |
||
| 81 | } |
||
| 82 |
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..