Skip to content

Commit da41068

Browse files
committed
fix
1 parent e6ba740 commit da41068

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/QueryReflection/QueryReflection.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -361,17 +361,17 @@ private function resolveQueryStringExpr(Expr $queryExpr, Scope $scope, bool $res
361361
$leftString = $this->resolveQueryStringExpr($left, $scope);
362362
$rightString = $this->resolveQueryStringExpr($right, $scope);
363363

364+
if (null === $leftString || null === $rightString) {
365+
return null;
366+
}
367+
364368
// queries with a dynamic FROM are not resolvable
365369
if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) {
366370
if (str_ends_with(rtrim($leftString), 'FROM') && is_numeric(trim($rightString, '"\''))) {
367371
throw new UnresolvableQueryDynamicFromException('Seems the query is too dynamic to be resolved by query simulation');
368372
}
369373
}
370374

371-
if (null === $leftString || null === $rightString) {
372-
return null;
373-
}
374-
375375
return $leftString . $rightString;
376376
}
377377

0 commit comments

Comments
 (0)