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.
2 parents 706ec3b + a3456b7 commit 9589ac4Copy full SHA for 9589ac4
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