Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>tags/v14.0.0beta1
@@ -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; |
@@ -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 |