Browse Source

Made orHaving varadic

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v14.0.0beta1
Roeland Jago Douma 6 years ago
parent
commit
0009358c17
No account linked to committer's email address

+ 3
- 3
lib/private/DB/QueryBuilder/QueryBuilder.php View File

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

return $this;

+ 2
- 2
lib/public/DB/QueryBuilder/IQueryBuilder.php View File

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

/**
* Specifies an ordering for the query results.

Loading…
Cancel
Save