fix row from array

This commit is contained in:
madflow 2017-09-29 18:03:48 +02:00
parent 2797052c54
commit 78f7036a7c

View File

@ -236,7 +236,7 @@ abstract class WriterAbstract implements WriterInterface
*/ */
protected function createRowFromArray(array $dataRow, Style $style = null) protected function createRowFromArray(array $dataRow, Style $style = null)
{ {
$row = (new Row())->setCells(array_map(function ($value) { $row = EntityFactory::createRow(array_map(function ($value) {
if ($value instanceof Cell) { if ($value instanceof Cell) {
return $value; return $value;
} }