Fix CsvParser skipping all rows when OPTION_CONTAINS_HEADER is true

This commit is contained in:
Marc Verney
2018-12-04 09:47:31 +01:00
parent 617754573c
commit 643b0539d1
2 changed files with 34 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ class CsvParser implements Parser
foreach (explode(PHP_EOL, $input) as $line) {
if (!$headerWasParsed && $this->skipHeaderLine === self::OPTION_CONTAINS_HEADER) {
$headerWasParsed = true;
continue;
}