1 | <?php |
||
8 | class Conditional |
||
9 | { |
||
10 | /** |
||
11 | * @var int |
||
12 | */ |
||
13 | private $opcode; |
||
14 | |||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | private $value; |
||
19 | |||
20 | /** |
||
21 | * @var null |
||
22 | */ |
||
23 | private $providedBy = null; |
||
24 | |||
25 | /** |
||
26 | * Conditional constructor. |
||
27 | * @param int $opcode |
||
28 | */ |
||
29 | public function __construct($opcode) |
||
37 | |||
38 | /** |
||
39 | * @return int |
||
40 | */ |
||
41 | public function getOp() |
||
45 | |||
46 | /** |
||
47 | * @param bool $value |
||
48 | */ |
||
49 | public function setValue($value) |
||
57 | |||
58 | /** |
||
59 | * @return bool |
||
60 | */ |
||
61 | public function hasValue() |
||
65 | |||
66 | /** |
||
67 | * @return bool |
||
68 | */ |
||
69 | public function getValue() |
||
77 | |||
78 | public function providedBy(Checksig $checksig) |
||
82 | |||
83 | /** |
||
84 | * @return array |
||
85 | */ |
||
86 | public function serialize() |
||
94 | } |
||
95 |
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..