summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:31:04 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:31:04 +0100
commit2c585afea1f0835566ff4bbad027aa57b5564afb (patch)
treed9fdc730eb90289a035d115460aee90ee43edb5d /lib/private/DB
parentc6eba3c925cbdd7d305a21588af421ca5e6986f9 (diff)
downloadnextcloud-server-2c585afea1f0835566ff4bbad027aa57b5564afb.tar.gz
nextcloud-server-2c585afea1f0835566ff4bbad027aa57b5564afb.zip
Make having varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/DB')
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index 57a0e1babd9..86e3eac14f2 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -914,14 +914,14 @@ class QueryBuilder implements IQueryBuilder {
* Specifies a restriction over the groups of the query.
* Replaces any previous having restrictions, if any.
*
- * @param mixed $having The restriction over the groups.
+ * @param mixed ...$having The restriction over the groups.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*/
- public function having($having) {
+ public function having(...$having) {
call_user_func_array(
[$this->queryBuilder, 'having'],
- func_get_args()
+ $having
);
return $this;