diff --git a/src/Reader.php b/src/Reader.php index 2e3e2029..4a611c09 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -329,7 +329,7 @@ protected function isValidKey($value) protected function getRow($offset) { $fileObj = $this->getIterator(); - $fileObj->setFlags(SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY); + $fileObj->setFlags(SplFileObject::READ_CSV | SplFileObject::READ_AHEAD | SplFileObject::SKIP_EMPTY); $iterator = new LimitIterator($fileObj, $offset, 1); $iterator->rewind(); $line = $iterator->current();