Made andWhere varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
222dbb7bc9
commit
07cb6aaeff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue