Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>tags/v14.0.0beta1
@@ -729,14 +729,14 @@ class QueryBuilder implements IQueryBuilder { | |||
* ->where($or); | |||
* </code> | |||
* | |||
* @param mixed $predicates The restriction predicates. | |||
* @param mixed ...$predicates The restriction predicates. | |||
* | |||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. | |||
*/ | |||
public function where($predicates) { | |||
public function where(...$predicates) { | |||
call_user_func_array( | |||
[$this->queryBuilder, 'where'], | |||
func_get_args() | |||
$predicates | |||
); | |||
return $this; |
@@ -554,7 +554,7 @@ interface IQueryBuilder { | |||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance. | |||
* @since 8.2.0 | |||
*/ | |||
public function where($predicates); | |||
public function where(...$predicates); | |||
/** | |||
* Adds one or more restrictions to the query results, forming a logical |