mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-01 04:30:16 +02:00
Fix CsvParser skipping all rows when OPTION_CONTAINS_HEADER is true
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user