Skip to content

Commit 936e103

Browse files
dasimf3l1x
authored andcommitted
Expect return of new collection from custom sorting callback in NextrasDataSource
1 parent 664006e commit 936e103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataSource/NextrasDataSource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function limit(int $offset, int $limit): IDataSource
7272
public function sort(Sorting $sorting): IDataSource
7373
{
7474
if (is_callable($sorting->getSortCallback())) {
75-
call_user_func(
75+
$this->dataSource = call_user_func(
7676
$sorting->getSortCallback(),
7777
$this->dataSource,
7878
$sorting->getSort()

0 commit comments

Comments
 (0)