From 70e0f67e182b1c11e3011fca72adfc1e37973565 Mon Sep 17 00:00:00 2001 From: Witel Group Date: Mon, 23 Dec 2024 08:44:28 +0000 Subject: [PATCH] fix the return type --- app/Services/DataTable/DataTableInput.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Services/DataTable/DataTableInput.php b/app/Services/DataTable/DataTableInput.php index db0cfa7f..18e7ea10 100644 --- a/app/Services/DataTable/DataTableInput.php +++ b/app/Services/DataTable/DataTableInput.php @@ -57,7 +57,7 @@ class DataTableInput } /** - * @return array|null + * @return array */ public function getSorting(): ?array { @@ -67,7 +67,7 @@ class DataTableInput $sorts[] = new Sort($sort->id, $sort->desc, $this->allowedSortings); } } - return $sorts == [] ? null : $sorts; + return $sorts; } public function getRelations(): array