Make having varadic
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
c6eba3c925
commit
2c585afea1
|
@ -914,14 +914,14 @@ class QueryBuilder implements IQueryBuilder {
|
|||
* Specifies a restriction over the groups of the query.
|
||||
* Replaces any previous having restrictions, if any.
|
||||
*
|
||||
* @param mixed $having The restriction over the groups.
|
||||
* @param mixed ...$having The restriction over the groups.
|
||||
*
|
||||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
||||
*/
|
||||
public function having($having) {
|
||||
public function having(...$having) {
|
||||
call_user_func_array(
|
||||
[$this->queryBuilder, 'having'],
|
||||
func_get_args()
|
||||
$having
|
||||
);
|
||||
|
||||
return $this;
|
||||
|
|
|
@ -682,12 +682,12 @@ interface IQueryBuilder {
|
|||
* Specifies a restriction over the groups of the query.
|
||||
* Replaces any previous having restrictions, if any.
|
||||
*
|
||||
* @param mixed $having The restriction over the groups.
|
||||
* @param mixed ...$having The restriction over the groups.
|
||||
*
|
||||
* @return \OCP\DB\QueryBuilder\IQueryBuilder This QueryBuilder instance.
|
||||
* @since 8.2.0
|
||||
*/
|
||||
public function having($having);
|
||||
public function having(...$having);
|
||||
|
||||
/**
|
||||
* Adds a restriction over the groups of the query, forming a logical
|
||||
|
|
Loading…
Reference in New Issue