Skip to content

Commit

Permalink
fix skipping columns
Browse files Browse the repository at this point in the history
  • Loading branch information
lpheller committed Nov 4, 2023
1 parent 48d75b5 commit bea38a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CsvProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public function prepareRow(array $row)
// Read CSV file and handle header row
$header = $this->getHeaderRow();

$header = $this->skipColumnsByIndex($header);
$header = $this->skipColumnsByHeaderName($header);

if (! $header) {
return $row;
}
Expand Down

0 comments on commit bea38a9

Please sign in to comment.