summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:31:33 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:31:33 +0100
commit408c2103db9dd5d981873544701cb69d01ffba9c (patch)
treef7c03551efc05c0dd29ec526d6c39641a9e940ed /lib
parent2c585afea1f0835566ff4bbad027aa57b5564afb (diff)
downloadnextcloud-server-408c2103db9dd5d981873544701cb69d01ffba9c.tar.gz
nextcloud-server-408c2103db9dd5d981873544701cb69d01ffba9c.zip
Made addHaving varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/DB/QueryBuilder/QueryBuilder.php6
-rw-r--r--lib/public/DB/QueryBuilder/IQueryBuilder.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/DB/QueryBuilder/QueryBuilder.php b/lib/private/DB/QueryBuilder/QueryBuilder.php
index 86e3eac14f2..3c29728386e 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -931,14 +931,14 @@ class QueryBuilder implements IQueryBuilder {
* Adds a restriction over the groups of the query, forming a logical
* conjunction with any existing having restrictions.
*
- * @param mixed $having The restriction to append.
+ * @param mixed ...$having The restriction to append.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*/
- public function andHaving($having) {
+ public function andHaving(...$having) {
call_user_func_array(
[$this->queryBuilder, 'andHaving'],
- func_get_args()
+ $having
);
return $this;
diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php
index aec8e264778..c27a0cb9643 100644
--- a/lib/public/DB/QueryBuilder/IQueryBuilder.php
+++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php
@@ -693,12 +693,12 @@ interface IQueryBuilder {
* Adds a restriction over the groups of the query, forming a logical
* conjunction with any existing having restrictions.
*
- * @param mixed $having The restriction to append.
+ * @param mixed ...$having The restriction to append.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
* @since 8.2.0
*/
- public function andHaving($having);
+ public function andHaving(...$having);
/**
* Adds a restriction over the groups of the query, forming a logical