Made where varadic

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

View file

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

View file

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