We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0c5975 + 4440295 commit bd6d11aCopy full SHA for bd6d11a
2 files changed
.travis.yml
@@ -4,6 +4,8 @@ php:
4
- 5.6
5
- 7.0
6
- 7.1
7
+ - 7.2
8
+ - 7.3
9
- hhvm
10
11
matrix:
src/SpreadsheetReader.php
@@ -128,7 +128,7 @@ public function current()
128
129
// If the spreadsheet file has column headers, use them to construct an associative
130
// array for the columns in this line
131
- if (count($this->columnHeaders) === count($row)) {
+ if (!empty($this->columnHeaders) && count($this->columnHeaders) === count($row)) {
132
return array_combine(array_values($this->columnHeaders), $row);
133
}
134
0 commit comments