summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:27:43 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-13 09:27:43 +0100
commit07cb6aaeff6c2b82265f078178384f2674ca24f3 (patch)
tree172bf87f196469c213289df38a3f7f5838df146b /lib/private/DB/QueryBuilder
parent222dbb7bc9aa4424a78da93690f6262dd57347a3 (diff)
downloadnextcloud-server-07cb6aaeff6c2b82265f078178384f2674ca24f3.tar.gz
nextcloud-server-07cb6aaeff6c2b82265f078178384f2674ca24f3.zip
Made andWhere varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/DB/QueryBuilder')
-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 a67e379617c..25f21f3c565 100644
--- a/lib/private/DB/QueryBuilder/QueryBuilder.php
+++ b/lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -754,16 +754,16 @@ class QueryBuilder implements IQueryBuilder {
* ->andWhere('u.is_active = 1');
* </code>
*
- * @param mixed $where The query restrictions.
+ * @param mixed ...$where The query restrictions.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*
* @see where()
*/
- public function andWhere($where) {
+ public function andWhere(...$where) {
call_user_func_array(
[$this->queryBuilder, 'andWhere'],
- func_get_args()
+ $where
);
return $this;