Skip to content

Commit bd6d11a

Browse files
authored
Merge pull request #3 from SosthenG/patch-1
Fix count warning php 7.2
2 parents f0c5975 + 4440295 commit bd6d11a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ php:
44
- 5.6
55
- 7.0
66
- 7.1
7+
- 7.2
8+
- 7.3
79
- hhvm
810

911
matrix:

src/SpreadsheetReader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function current()
128128

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

0 commit comments

Comments
 (0)