Skip to content

Commit

Permalink
Heading errors are now using the same format as body errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandanaita committed Jan 25, 2017
1 parent 63100c5 commit 6ab0671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CsvValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ protected function validateHeadingRow($row)

foreach ($row as $index => $heading) {
if (!in_array($heading, $this->getHeadingKeys())) {
$errors[$index] = $heading;
$errors[$heading][0] = 'Heading ' . $heading . ' is not a valid heading for this CSV.';
}
}

Expand Down

0 comments on commit 6ab0671

Please sign in to comment.