1 | <?php |
||
15 | class Context |
||
16 | { |
||
17 | /** |
||
18 | * Unread data in socket |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $unreadData = ['', '']; |
||
23 | |||
24 | /** |
||
25 | * Return UnreadData |
||
26 | * |
||
27 | * @param bool $isOutOfBand Flag if it is out of band data |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 41 | public function getUnreadData($isOutOfBand = false) |
|
35 | |||
36 | /** |
||
37 | * Sets UnreadData |
||
38 | * |
||
39 | * @param string $unreadData New value for UnreadData |
||
40 | * @param bool $isOutOfBand Flag if it is out of band data |
||
41 | * |
||
42 | * @return void |
||
43 | */ |
||
44 | 40 | public function setUnreadData($unreadData, $isOutOfBand = false) |
|
48 | |||
49 | /** |
||
50 | * Resets socket context |
||
51 | * |
||
52 | * @return void |
||
53 | */ |
||
54 | 55 | public function reset() |
|
58 | } |
||
59 |
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..