From 1f8d74a61283e69cce3fc5518a13d2c35c65d4a8 Mon Sep 17 00:00:00 2001 From: Sukhwinder Dhillon Date: Tue, 26 Mar 2024 12:02:12 +0100 Subject: [PATCH] Sort: Fix var type error --- library/Businessprocess/Common/Sort.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/Businessprocess/Common/Sort.php b/library/Businessprocess/Common/Sort.php index 4728af3e..01bb569f 100644 --- a/library/Businessprocess/Common/Sort.php +++ b/library/Businessprocess/Common/Sort.php @@ -41,7 +41,9 @@ public function setSort(?string $sort): self return $this; } - list($sortBy, $direction) = Str::symmetricSplit($sort, ' ', 2, 'asc'); + /** @var array $res */ + $res = Str::symmetricSplit($sort, ' ', 2, 'asc'); + [$sortBy, $direction] = $res; switch ($sortBy) { case 'manual':