Make having varadic

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

View File

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

View File

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