Made andWhere varadic

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-03-13 09:27:43 +01:00
parent 222dbb7bc9
commit 07cb6aaeff
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -575,7 +575,7 @@ interface IQueryBuilder {
* @see where()
* @since 8.2.0
*/
public function andWhere($where);
public function andWhere(...$where);
/**
* Adds one or more restrictions to the query results, forming a logical