File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 88use PHPStan \Testing \RuleTestCase ;
99use staabm \PHPStanDba \QueryReflection \QueryReflection ;
1010use staabm \PHPStanDba \Rules \SyntaxErrorInQueryMethodRule ;
11+ use staabm \PHPStanDba \UnresolvableQueryInvalidAfterSimulationException ;
1112use staabm \PHPStanDba \UnresolvableQueryMixedTypeException ;
1213use staabm \PHPStanDba \UnresolvableQueryStringTypeException ;
1314
@@ -71,11 +72,23 @@ public function testBug536(): void
7172
7273 public function testBug548 (): void
7374 {
74- $ this ->analyse ([__DIR__ . '/data/bug-548.php ' ], []);
75+ $ this ->analyse ([__DIR__ . '/data/bug-548.php ' ], [
76+ [
77+ 'Unresolvable Query: Seems the query is too dynamic to be resolved by query simulation. ' ,
78+ 10 ,
79+ UnresolvableQueryInvalidAfterSimulationException::getTip (),
80+ ],
81+ ]);
7582 }
7683
7784 public function testBug547 (): void
7885 {
79- $ this ->analyse ([__DIR__ . '/data/bug-547.php ' ], []);
86+ $ this ->analyse ([__DIR__ . '/data/bug-547.php ' ], [
87+ [
88+ 'Unresolvable Query: Seems the query is too dynamic to be resolved by query simulation. ' ,
89+ 10 ,
90+ UnresolvableQueryInvalidAfterSimulationException::getTip (),
91+ ],
92+ ]);
8093 }
8194}
You can’t perform that action at this time.
0 commit comments