| 1 | <?php |
||
| 17 | class Context |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var Opcode[] |
||
| 21 | */ |
||
| 22 | private $stack; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var bool |
||
| 26 | */ |
||
| 27 | private $await = false; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Context constructor. |
||
| 31 | */ |
||
| 32 | public function __construct() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return null|Opcode |
||
| 40 | */ |
||
| 41 | public function current(): ?Opcode |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return null|Opcode |
||
| 48 | */ |
||
| 49 | public function create(): ?Opcode |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return null|Opcode |
||
| 58 | */ |
||
| 59 | public function close(): ?Opcode |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @param Opcode $opcode |
||
| 68 | * @return Opcode |
||
| 69 | */ |
||
| 70 | public function match(Opcode $opcode): Opcode |
||
| 79 | } |
||
| 80 |
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..