Skip to content

Commit 02fedf1

Browse files
authored
Restore src/QueryReflection/QueryReflection.php
1 parent 7254665 commit 02fedf1

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
@@ -34,7 +34,6 @@
3434
use staabm\PHPStanDba\SchemaReflection\SchemaReflection;
3535
use staabm\PHPStanDba\SqlAst\ParserInference;
3636
use staabm\PHPStanDba\UnresolvableQueryException;
37-
use staabm\PHPStanDba\UnresolvableQueryInvalidAfterSimulationException;
3837

3938
final class QueryReflection
4039
{
@@ -287,10 +286,6 @@ public function resolveQueryStrings(Expr $queryExpr, Scope $scope): iterable
287286
$error = $this->validateQueryString($normalizedQuery);
288287
if ($error === null) {
289288
yield $normalizedQuery;
290-
} else {
291-
if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) {
292-
throw new UnresolvableQueryInvalidAfterSimulationException('Seems the query is too dynamic to be resolved by query simulation');
293-
}
294289
}
295290
}
296291
}

0 commit comments

Comments
 (0)