diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index a63b3e5d..70600551 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -231,7 +231,7 @@ public function detectDelimiter($nbRows = 1, array $delimiters = []) $delimiters = array_filter($delimiters, function ($str) { return 1 == mb_strlen($str); }); - $delimiters = array_merge([',', ';', "\t"], $delimiters); + $delimiters = array_merge([$this->delimiter, ',', ';', "\t"], $delimiters); $delimiters = array_unique($delimiters); $iterator = new CallbackFilterIterator( new LimitIterator($this->getIterator(), 0, $nbRows),