Skip to content

Commit a81a990

Browse files
authored
Merge pull request #9 from throwexceptions/master
Add cast to array for variable $row.
2 parents 4b24e88 + 3adb099 commit a81a990

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Exports/DataTableQueuedExport.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public function map($row): array
4343
return $this->columns
4444
->map(function (Column $column, $index) use ($row) {
4545
$property = $column['data'];
46-
46+
$row = (array) $row;
47+
4748
if ($row[$property] instanceof \DateTime) {
4849
$this->dates[] = $index;
4950

0 commit comments

Comments
 (0)