Made addHaving varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
2c585afea1
commit
408c2103db
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue