We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a16e5 commit 78161f9Copy full SHA for 78161f9
src/Eloquent/Builder.php
@@ -234,12 +234,12 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
234
235
if ($shouldReverse) {
236
$this->query->orders = collect($this->query->orders)
237
- ->map(fn (int $direction) => $direction === 1 ? -1 : 1)
+ ->map(static fn (int $direction) => $direction === 1 ? -1 : 1)
238
->toArray();
239
}
240
241
return collect($this->query->orders)
242
- ->map(fn ($direction, $column) => [
+ ->map(static fn ($direction, $column) => [
243
'column' => $column,
244
'direction' => $direction === 1 ? 'asc' : 'desc',
245
])->values();
0 commit comments