Made addHaving varadic

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-03-13 09:31:33 +01:00
parent 2c585afea1
commit 408c2103db
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 5 additions and 5 deletions

View File

@ -931,14 +931,14 @@ class QueryBuilder implements IQueryBuilder {
* Adds a restriction over the groups of the query, forming a logical
* conjunction with any existing having restrictions.
*
* @param mixed $having The restriction to append.
* @param mixed ...$having The restriction to append.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
*/
public function andHaving($having) {
public function andHaving(...$having) {
call_user_func_array(
[$this->queryBuilder, 'andHaving'],
func_get_args()
$having
);
return $this;

View File

@ -693,12 +693,12 @@ interface IQueryBuilder {
* Adds a restriction over the groups of the query, forming a logical
* conjunction with any existing having restrictions.
*
* @param mixed $having The restriction to append.
* @param mixed ...$having The restriction to append.
*
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
* @since 8.2.0
*/
public function andHaving($having);
public function andHaving(...$having);
/**
* Adds a restriction over the groups of the query, forming a logical