aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-07-05 15:03:50 +0200
committerRobin Appelman <robin@icewind.nl>2024-07-12 17:01:36 +0200
commitd81d59e9c3b10719d2050545713099401603262f (patch)
tree17c802d2089182b977f7ddbec9ff03672046767f /lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
parent86f5fb0c9b9f0d4fd9721d05f04d6dedb5315c29 (diff)
downloadnextcloud-server-d81d59e9c3b10719d2050545713099401603262f.tar.gz
nextcloud-server-d81d59e9c3b10719d2050545713099401603262f.zip
feat: allow inspecting the parts of the composite expression builder
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php')
-rw-r--r--lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php b/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
index a7af00b9f97..c4ac350dee5 100644
--- a/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
+++ b/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php
@@ -63,8 +63,7 @@ class ExpressionBuilder implements IExpressionBuilder {
* @return \OCP\DB\QueryBuilder\ICompositeExpression
*/
public function andX(...$x): ICompositeExpression {
- $compositeExpression = call_user_func_array([$this->expressionBuilder, 'andX'], $x);
- return new CompositeExpression($compositeExpression);
+ return new CompositeExpression(CompositeExpression::TYPE_AND, $x);
}
/**
@@ -82,8 +81,7 @@ class ExpressionBuilder implements IExpressionBuilder {
* @return \OCP\DB\QueryBuilder\ICompositeExpression
*/
public function orX(...$x): ICompositeExpression {
- $compositeExpression = call_user_func_array([$this->expressionBuilder, 'orX'], $x);
- return new CompositeExpression($compositeExpression);
+ return new CompositeExpression(CompositeExpression::TYPE_OR, $x);
}
/**