Sort: Fix var type error

This commit is contained in:
Sukhwinder Dhillon 2024-03-26 12:02:12 +01:00
parent 004044a22a
commit 1f8d74a612

View file

@ -41,7 +41,9 @@ trait Sort
return $this;
}
list($sortBy, $direction) = Str::symmetricSplit($sort, ' ', 2, 'asc');
/** @var array<int, string> $res */
$res = Str::symmetricSplit($sort, ' ', 2, 'asc');
[$sortBy, $direction] = $res;
switch ($sortBy) {
case 'manual':