fix the return type

This commit is contained in:
2024-12-23 08:44:28 +00:00
parent e9ca94f089
commit 70e0f67e18

View File

@@ -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