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 ef81fd7 commit d6e8a85Copy full SHA for d6e8a85
src/Eloquent/Builder.php
@@ -225,12 +225,12 @@ protected function ensureOrderForCursorPagination($shouldReverse = false)
225
226
if ($shouldReverse) {
227
$this->query->orders = collect($this->query->orders)
228
- ->map(fn (int $direction) => $direction === 1 ? -1 : 1)
+ ->map(static fn (int $direction) => $direction === 1 ? -1 : 1)
229
->toArray();
230
}
231
232
return collect($this->query->orders)
233
- ->map(fn ($direction, $column) => [
+ ->map(static fn ($direction, $column) => [
234
'column' => $column,
235
'direction' => $direction === 1 ? 'asc' : 'desc',
236
])->values();
0 commit comments