Skip to content

Commit

Permalink
Sort: Add var type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Mar 26, 2024
1 parent 75ce3db commit 8b53508
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/Businessprocess/Common/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ public function setSort(?string $sort): self
return $this;
}

list($sortBy, $direction) = Str::symmetricSplit($sort, ' ', 2, 'asc');
/** @var $sortBy string */
[$sortBy, $direction] = Str::symmetricSplit($sort, ' ', 2, 'asc');

switch ($sortBy) {
case 'manual':
Expand Down

0 comments on commit 8b53508

Please sign in to comment.