Skip to content

Commit 0637851

Browse files
committed
fix
1 parent 782f7d6 commit 0637851

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/QueryReflection/QueryReflection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,17 +366,17 @@ private function resolveQueryStringExpr(Expr $queryExpr, Scope $scope, bool $res
366366
$leftString = $this->resolveQueryStringExpr($left, $scope);
367367
$rightString = $this->resolveQueryStringExpr($right, $scope);
368368

369+
if (null === $leftString || null === $rightString) {
370+
return null;
371+
}
372+
369373
// queries with a dynamic FROM are not resolvable
370374
if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) {
371375
if (str_ends_with(rtrim($leftString), 'FROM') && is_numeric(trim($rightString, '"\''))) {
372376
throw new UnresolvableQueryDynamicFromException('Seems the query is too dynamic to be resolved by query simulation');
373377
}
374378
}
375379

376-
if (null === $leftString || null === $rightString) {
377-
return null;
378-
}
379-
380380
return $leftString . $rightString;
381381
}
382382

0 commit comments

Comments
 (0)