diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 09:28:27 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-13 09:28:27 +0100 |
commit | d6b93e662024c35d02e8762d04c726c84c6c454a (patch) | |
tree | 22e72b1005bad76d0552a3b2a64184cd2fe7d623 /lib/private/DB/QueryBuilder | |
parent | 07cb6aaeff6c2b82265f078178384f2674ca24f3 (diff) | |
download | nextcloud-server-d6b93e662024c35d02e8762d04c726c84c6c454a.tar.gz nextcloud-server-d6b93e662024c35d02e8762d04c726c84c6c454a.zip |
Made orWhere 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.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 25f21f3c565..0d0e6594b50 100644 --- a/lib/private/DB/QueryBuilder/QueryBuilder.php +++ b/lib/private/DB/QueryBuilder/QueryBuilder.php @@ -781,16 +781,16 @@ class QueryBuilder implements IQueryBuilder { * ->orWhere('u.id = 2'); * </code> * - * @param mixed $where The WHERE statement. + * @param mixed ...$where The WHERE statement. * * @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. * * @see where() */ - public function orWhere($where) { + public function orWhere(...$where) { call_user_func_array( [$this->queryBuilder, 'orWhere'], - func_get_args() + $where ); return $this; |