Skip to content

Commit

Permalink
Bug Fix detectDelimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Mar 13, 2014
1 parent fdd1130 commit fa97bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractCsv.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public function detectDelimiter($nbRows = 1, array $delimiters = [])
$delimiters = array_merge([',', ';', "\t"], $delimiters);
$delimiters = array_unique($delimiters);
$iterator = new CallbackFilterIterator(
new LimitIterator($this->csv, 0, $nbRows),
new LimitIterator($this->getIterator(), 0, $nbRows),
function ($row) {
return is_array($row) && count($row) > 1;
}
Expand Down

0 comments on commit fa97bcd

Please sign in to comment.