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 75ce3db commit 1a960cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Businessprocess/Common/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function setSort(?string $sort): self
return $this;
}

list($sortBy, $direction) = Str::symmetricSplit($sort, ' ', 2, 'asc');
[$sortBy, $direction] = Str::symmetricSplit($sort, ' ', 2, 'asc');

switch ($sortBy) {
case 'manual':
Expand Down Expand Up @@ -109,7 +109,7 @@ public function setSort(?string $sort): self
default:
throw new InvalidArgumentException(sprintf(
"Can't sort by %s. It's only possible to sort by manual order, display_name or state",
$sortBy
(string) $sortBy
));
}

Expand Down

0 comments on commit 1a960cc

Please sign in to comment.