Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/CsvReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function current()
}

// Since the CSV has column headers use them to construct an associative array for the columns in this line
do {
while($this->valid()) {
$line = $this->file->current();

// In non-strict mode pad/slice the line to match the column headers
Expand All @@ -139,7 +139,7 @@ public function current()
$this->errors[$this->key()] = $line;
$this->next();
}
} while($this->valid());
}

return null;
}
Expand Down