Skip to content

Commit e705456

Browse files
committed
Missing parameter inside chunk()
1 parent 66a9cb4 commit e705456

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElasticquentResultCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function chunk($size, $preserveKeys = false)
158158
$chunks = [];
159159

160160
foreach (array_chunk($this->items, $size, $preserveKeys) as $chunk) {
161-
$chunks[] = new static($chunk->instance);
161+
$chunks[] = new static($chunk, $this->instance);
162162
}
163163

164164
return new static($chunks, $this->instance);

0 commit comments

Comments
 (0)