From 0637851d56d21ace98b1917f4607a5e2d30b77eb Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 11 Mar 2023 09:16:10 +0100 Subject: [PATCH] fix --- src/QueryReflection/QueryReflection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/QueryReflection/QueryReflection.php b/src/QueryReflection/QueryReflection.php index c4e0f5e17..02c64800c 100644 --- a/src/QueryReflection/QueryReflection.php +++ b/src/QueryReflection/QueryReflection.php @@ -366,6 +366,10 @@ private function resolveQueryStringExpr(Expr $queryExpr, Scope $scope, bool $res $leftString = $this->resolveQueryStringExpr($left, $scope); $rightString = $this->resolveQueryStringExpr($right, $scope); + if (null === $leftString || null === $rightString) { + return null; + } + // queries with a dynamic FROM are not resolvable if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) { if (str_ends_with(rtrim($leftString), 'FROM') && is_numeric(trim($rightString, '"\''))) { @@ -373,10 +377,6 @@ private function resolveQueryStringExpr(Expr $queryExpr, Scope $scope, bool $res } } - if (null === $leftString || null === $rightString) { - return null; - } - return $leftString . $rightString; }