diff options
Diffstat (limited to 'src/AbstractCsv.php')
-rw-r--r-- | src/AbstractCsv.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/AbstractCsv.php b/src/AbstractCsv.php index 109df0b..9ec135a 100644 --- a/src/AbstractCsv.php +++ b/src/AbstractCsv.php @@ -256,9 +256,9 @@ abstract class AbstractCsv implements JsonSerializable, IteratorAggregate * * @return static */ - protected function newInstance($class_name, $open_mode) + protected function newInstance($class, $open_mode) { - $csv = new $class_name($this->path, $open_mode); + $csv = new $class($this->path, $open_mode); $csv->delimiter = $this->delimiter; $csv->enclosure = $this->enclosure; $csv->escape = $this->escape; |