Skip to content

Commit

Permalink
Expect return of new collection from custom sorting callback in Nextr…
Browse files Browse the repository at this point in the history
…asDataSource
  • Loading branch information
dasim authored and f3l1x committed Aug 19, 2024
1 parent 664006e commit 936e103
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataSource/NextrasDataSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function limit(int $offset, int $limit): IDataSource
public function sort(Sorting $sorting): IDataSource
{
if (is_callable($sorting->getSortCallback())) {
call_user_func(
$this->dataSource = call_user_func(
$sorting->getSortCallback(),
$this->dataSource,
$sorting->getSort()
Expand Down

0 comments on commit 936e103

Please sign in to comment.