summaryrefslogtreecommitdiffstats
path: root/src/Reader.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Reader.php')
-rw-r--r--src/Reader.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Reader.php b/src/Reader.php
index 4e764b5..16d233e 100644
--- a/src/Reader.php
+++ b/src/Reader.php
@@ -66,7 +66,7 @@ class Reader extends AbstractCsv
*/
protected function getConversionIterator()
{
- $iterator = $this->getIterator();
+ $iterator = parent::getConversionIterator();
$iterator = $this->applyBomStripping($iterator);
$iterator = $this->applyIteratorFilter($iterator);
$iterator = $this->applyIteratorSortBy($iterator);
@@ -242,8 +242,7 @@ class Reader extends AbstractCsv
}
if (0 == $offset && $this->isBomStrippable()) {
- $bom = $this->getInputBom();
- $res[0] = mb_substr($res[0], mb_strlen($bom));
+ $res[0] = mb_substr($res[0], mb_strlen($this->getInputBom()));
}
return $res;