summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:32:31 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:32:31 +0100
commit0009358c17b4c84d94efc94ed91d097d11e4321a (patch)
tree019610ee3d0d4f093d44c13a2fd63acd73a8b1a1 /lib/private/DB
parent408c2103db9dd5d981873544701cb69d01ffba9c (diff)
downloadnextcloud-server-0009358c17b4c84d94efc94ed91d097d11e4321a.tar.gz
nextcloud-server-0009358c17b4c84d94efc94ed91d097d11e4321a.zip
Made orHaving 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 3c29728386e..3cb7ba133db 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -948,14 +948,14 @@ class QueryBuilder implements IQueryBuilder {
* Adds a restriction over the groups of the query, forming a logical
* disjunction with any existing having restrictions.
*
- * @param mixed $having The restriction to add.
+ * @param mixed ...$having The restriction to add.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*/
- public function orHaving($having) {
+ public function orHaving(...$having) {
call_user_func_array(
[$this->queryBuilder, 'orHaving'],
- func_get_args()
+ $having
);
return $this;