Skip to content

Commit

Permalink
Merge pull request #12 from bergmab/patch-1
Browse files Browse the repository at this point in the history
Update SimpleCsvService.php
  • Loading branch information
bayareawebpro authored Feb 26, 2021
2 parents 625e741 + ca00037 commit fa05126
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/SimpleCsvService.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ protected function flattenRow($entry): array

protected function openFileObject(string $path, string $mode = 'r'): void
{
$this->file = new SplFileObject($path, $mode);
$this->file = new \SplFileObject($path, $mode);
}

protected function writeLines($collection): void
Expand All @@ -113,7 +113,6 @@ protected function writeLines($collection): void
$this->writeLine($this->headers);
}
$this->writeLine(array_values($this->flattenRow($entry)));
unset($entry);
}
}
}

0 comments on commit fa05126

Please sign in to comment.