Skip to content

Commit b8a8366

Browse files
committed
Use all to prevent unnecessary transformation
1 parent 1cbf94c commit b8a8366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MessageQuery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ protected function fetch(Collection $messages): array
263263
'desc' => $messages->sortDesc(SORT_NUMERIC),
264264
};
265265

266-
$uids = $messages->forPage($this->page, $this->limit)->toArray();
266+
$uids = $messages->forPage($this->page, $this->limit)->values();
267267

268268
$flags = $this->fetchFlags ? $this->connection()
269269
->flags($uids)

0 commit comments

Comments
 (0)