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