Skip to content

Commit 5ddae7a

Browse files
committed
fix: Remove bogus code from query builder and fix parameter name
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 29bbda0 commit 5ddae7a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/private/DB/QueryBuilder/QueryBuilder.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,14 +975,10 @@ public function groupBy(...$groupBys) {
975975
*
976976
* @return $this This QueryBuilder instance.
977977
*/
978-
public function addGroupBy(...$groupBys) {
979-
if (count($groupBys) === 1 && is_array($groupBys[0])) {
980-
$$groupBys = $groupBys[0];
981-
}
982-
978+
public function addGroupBy(...$groupBy) {
983979
call_user_func_array(
984980
[$this->queryBuilder, 'addGroupBy'],
985-
$this->helper->quoteColumnNames($groupBys)
981+
$this->helper->quoteColumnNames($groupBy)
986982
);
987983

988984
return $this;

0 commit comments

Comments
 (0)