Skip to content

Commit

Permalink
Sort: Fix var type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Mar 26, 2024
1 parent 004044a commit 1f8d74a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Businessprocess/Common/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ public function setSort(?string $sort): self
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':
Expand Down

0 comments on commit 1f8d74a

Please sign in to comment.