| 1 | <?php |
||
| 16 | class FakeDumpReader implements DumpReader { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string[] |
||
| 20 | */ |
||
| 21 | private $lines; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $lines |
||
| 25 | */ |
||
| 26 | 5 | public function __construct( $lines ) { |
|
| 30 | |||
| 31 | 5 | public function rewind(): void { |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string|null |
||
| 37 | */ |
||
| 38 | 5 | public function nextJsonLine(): ?string { |
|
| 49 | |||
| 50 | } |
||
| 51 |
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..