Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm

matrix:
Expand Down
2 changes: 1 addition & 1 deletion src/SpreadsheetReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function current()

// If the spreadsheet file has column headers, use them to construct an associative
// array for the columns in this line
if (count($this->columnHeaders) === count($row)) {
if (!empty($this->columnHeaders) && count($this->columnHeaders) === count($row)) {
return array_combine(array_values($this->columnHeaders), $row);
}

Expand Down