We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29bbda0 commit 5ddae7aCopy full SHA for 5ddae7a
lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -975,14 +975,10 @@ public function groupBy(...$groupBys) {
975
*
976
* @return $this This QueryBuilder instance.
977
*/
978
- public function addGroupBy(...$groupBys) {
979
- if (count($groupBys) === 1 && is_array($groupBys[0])) {
980
- $$groupBys = $groupBys[0];
981
- }
982
-
+ public function addGroupBy(...$groupBy) {
983
call_user_func_array(
984
[$this->queryBuilder, 'addGroupBy'],
985
- $this->helper->quoteColumnNames($groupBys)
+ $this->helper->quoteColumnNames($groupBy)
986
);
987
988
return $this;
0 commit comments