Skip to content

Commit 680d928

Browse files
committed
Restore src/QueryReflection/QueryReflection.php
1 parent 131eb6a commit 680d928

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/QueryReflection/QueryReflection.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
use staabm\PHPStanDba\SchemaReflection\SchemaReflection;
3333
use staabm\PHPStanDba\SqlAst\ParserInference;
3434
use staabm\PHPStanDba\UnresolvableQueryException;
35-
use staabm\PHPStanDba\UnresolvableQueryInvalidAfterSimulationException;
3635

3736
final class QueryReflection
3837
{
@@ -298,10 +297,6 @@ public function resolveQueryStrings(Expr $queryExpr, Scope $scope): iterable
298297
$error = $this->validateQueryString($normalizedQuery);
299298
if ($error === null) {
300299
yield $normalizedQuery;
301-
} else {
302-
if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) {
303-
throw new UnresolvableQueryInvalidAfterSimulationException('Seems the query is too dynamic to be resolved by query simulation');
304-
}
305300
}
306301
}
307302
}

0 commit comments

Comments
 (0)