| 1 | <?php |
||
| 12 | class TableWriter implements Writer |
||
| 13 | { |
||
| 14 | use WriterTemplate; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Table |
||
| 18 | */ |
||
| 19 | private $table; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | private $firstItem; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param Table $table |
||
| 28 | */ |
||
| 29 | public function __construct(Table $table) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function writeItem(array $item) { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * {@inheritdoc} |
||
| 48 | */ |
||
| 49 | public function finish() { |
||
| 56 | } |
||
| 57 |
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..