Skip to content

Commit 72aeaa8

Browse files
authored
Update QueryObjectDataSource.php
1 parent 588c89a commit 72aeaa8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/QueryObjectDataSource.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function filter(array $filters) {
108108
}
109109

110110
if (is_callable($this->filterCallback)) {
111-
$this->filterCallback($this->queryObject, $filters);
111+
call_user_func_array($this->filterCallback, [$this->queryObject, $filters]);
112112
}
113113

114114
return $this;
@@ -122,7 +122,7 @@ public function filter(array $filters) {
122122
public function filterOne(array $filter) {
123123

124124
if (is_callable($this->filterOneCallback)) {
125-
$this->filterOneCallback($this->queryObject, $filter);
125+
call_user_func_array($this->filterOneCallback, [$this->queryObject, $filter]);
126126
}
127127

128128
return $this;
@@ -148,7 +148,7 @@ public function limit($offset, $limit) {
148148
public function sort(\Ublaboo\DataGrid\Utils\Sorting $sorting) {
149149

150150
if (is_callable($this->sortCallback)) {
151-
$this->sortCallback($this->queryObject, $sorting);
151+
call_user_func_array($this->sortCallback, [$this->queryObject, $sorting]);
152152
}
153153

154154
return $this;

0 commit comments

Comments
 (0)