Skip to content

Commit cb12556

Browse files
committed
Update FakeMessageQuery.php
1 parent b38580d commit cb12556

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Testing/FakeMessageQuery.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ public function chunk(callable $callback, int $chunkSize = 10, int $startChunk =
9797
{
9898
$page = $startChunk;
9999

100-
$messages = $this->get();
101-
102-
$chunks = $messages->chunk($chunkSize);
103-
104-
foreach ($chunks as $chunk) {
100+
foreach ($this->get()->chunk($chunkSize) as $chunk) {
105101
if ($page < $startChunk) {
106102
$page++;
107103

0 commit comments

Comments
 (0)