diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 09:27:43 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 09:27:43 +0100 |
commit | 07cb6aaeff6c2b82265f078178384f2674ca24f3 (patch) | |
tree | 172bf87f196469c213289df38a3f7f5838df146b /lib/private/DB | |
parent | 222dbb7bc9aa4424a78da93690f6262dd57347a3 (diff) | |
download | nextcloud-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')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 6 |
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; |