Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph authored Sep 21, 2020
1 parent e013e55 commit badb673
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Exporters/WriteSheet.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,7 @@ protected function formatRow(array &$row, Contracts\Exporters\Sheet $sheet)
$values = [];

foreach ($this->filterAndSortByHeaders($row, $sheet) as $k => &$value) {
$value = is_int($value) || is_float($value) || is_null($value) ? (string) $value : $value;

if (is_string($value)) {
if (is_scalar($value) || is_null($value)) {
$values[$k] = $value;
}
}
Expand Down

0 comments on commit badb673

Please sign in to comment.