fix the return type
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user