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 | |
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')
-rw-r--r-- | lib/private/DB/QueryBuilder/QueryBuilder.php | 6 | ||||
-rw-r--r-- | lib/public/DB/QueryBuilder/IQueryBuilder.php | 6 |
2 files changed, 6 insertions, 6 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; diff --git a/lib/public/DB/QueryBuilder/IQueryBuilder.php b/lib/public/DB/QueryBuilder/IQueryBuilder.php index 5d6aadc13eb..876e77378e3 100644 --- a/lib/public/DB/QueryBuilder/IQueryBuilder.php +++ b/lib/public/DB/QueryBuilder/IQueryBuilder.php @@ -568,7 +568,7 @@ interface 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. * @@ -589,14 +589,14 @@ interface 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() * @since 8.2.0 */ - public function orWhere($where); + public function orWhere(...$where); /** * Specifies a grouping over the results of the query. |