Skip to content

Commit

Permalink
Merge pull request #81 from askdkc/leagucsv-update
Browse files Browse the repository at this point in the history
League Csv Update
  • Loading branch information
askdkc authored Apr 5, 2024
2 parents 2e7bed5 + 02ec1c7 commit 74fe495
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"require": {
"php": "^8.0",
"illuminate/contracts": "^9.0|^10.0",
"league/csv": "~9.11.0",
"league/csv": "^9.15.0",
"livewire/livewire": "^2.10",
"spatie/laravel-package-tools": "^1.9.2"
},
Expand Down
2 changes: 2 additions & 0 deletions src/Utilities/ChunkIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct(Iterator $iterator, int $chunkSize)
*/
public function get(): Generator
{
$this->iterator->rewind();

$chunk = [];

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

0 comments on commit 74fe495

Please sign in to comment.