Skip to content

Commit 74fe495

Browse files
authored
Merge pull request #81 from askdkc/leagucsv-update
League Csv Update
2 parents 2e7bed5 + 02ec1c7 commit 74fe495

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require": {
2121
"php": "^8.0",
2222
"illuminate/contracts": "^9.0|^10.0",
23-
"league/csv": "~9.11.0",
23+
"league/csv": "^9.15.0",
2424
"livewire/livewire": "^2.10",
2525
"spatie/laravel-package-tools": "^1.9.2"
2626
},

src/Utilities/ChunkIterator.php

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public function __construct(Iterator $iterator, int $chunkSize)
4141
*/
4242
public function get(): Generator
4343
{
44+
$this->iterator->rewind();
45+
4446
$chunk = [];
4547

4648
for ($i = 0; $this->iterator->valid(); $i++) {

0 commit comments

Comments
 (0)