| 1 | <?php |
||
| 11 | class Conditional |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | private $opcode; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var bool |
||
| 20 | */ |
||
| 21 | private $value; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var null |
||
| 25 | */ |
||
| 26 | private $providedBy = null; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Conditional constructor. |
||
| 30 | * @param int $opcode |
||
| 31 | */ |
||
| 32 | 11 | public function __construct(int $opcode) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
| 43 | */ |
||
| 44 | public function getOp(): int |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param bool $value |
||
| 51 | */ |
||
| 52 | 11 | public function setValue(bool $value) |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @return bool |
||
| 59 | */ |
||
| 60 | 11 | public function hasValue(): bool |
|
| 64 | |||
| 65 | /** |
||
| 66 | * @return bool |
||
| 67 | */ |
||
| 68 | 11 | public function getValue(): bool |
|
| 76 | |||
| 77 | /** |
||
| 78 | * @param Checksig $checksig |
||
| 79 | */ |
||
| 80 | 4 | public function providedBy(Checksig $checksig) |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @return BufferInterface[] |
||
| 87 | */ |
||
| 88 | 11 | public function serialize(): array |
|
| 96 | } |
||
| 97 |
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..