We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 625e741 + ca00037 commit fa05126Copy full SHA for fa05126
src/SimpleCsvService.php
@@ -94,7 +94,7 @@ protected function flattenRow($entry): array
94
95
protected function openFileObject(string $path, string $mode = 'r'): void
96
{
97
- $this->file = new SplFileObject($path, $mode);
+ $this->file = new \SplFileObject($path, $mode);
98
}
99
100
protected function writeLines($collection): void
@@ -113,7 +113,6 @@ protected function writeLines($collection): void
113
$this->writeLine($this->headers);
114
115
$this->writeLine(array_values($this->flattenRow($entry)));
116
- unset($entry);
117
118
119
0 commit comments