Skip to content

Commit

Permalink
支持php7.3以下版本
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Sep 17, 2021
1 parent 04257c5 commit 459497a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Grid/Filter/AbstractFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,9 @@ protected function buildRelationQuery($relColumn, ...$params)

return [$method => [implode('.', $column), function ($q) use ($relColumn, $params) {
$relColumn = is_string($relColumn) ? $q->getModel()->getTable().'.'.$relColumn : $relColumn;
call_user_func_array([$q, $this->query], [$relColumn, ...$params]);
array_unshift($params, $relColumn);

call_user_func_array([$q, $this->query], $params);
}]];
}

Expand Down

0 comments on commit 459497a

Please sign in to comment.