Skip to content

Commit 44aa4b1

Browse files
committed
Restore src/QueryReflection/QueryReflection.php
1 parent ffcdd1a commit 44aa4b1

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
{
@@ -293,10 +292,6 @@ public function resolveQueryStrings(Expr $queryExpr, Scope $scope): iterable
293292
$error = $this->validateQueryString($normalizedQuery);
294293
if ($error === null) {
295294
yield $normalizedQuery;
296-
} else {
297-
if (QueryReflection::getRuntimeConfiguration()->isDebugEnabled()) {
298-
throw new UnresolvableQueryInvalidAfterSimulationException('Seems the query is too dynamic to be resolved by query simulation');
299-
}
300295
}
301296
}
302297
}

0 commit comments

Comments
 (0)