File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 8
8
use PHPStan \Testing \RuleTestCase ;
9
9
use staabm \PHPStanDba \QueryReflection \QueryReflection ;
10
10
use staabm \PHPStanDba \Rules \SyntaxErrorInQueryMethodRule ;
11
+ use staabm \PHPStanDba \UnresolvableQueryInvalidAfterSimulationException ;
11
12
use staabm \PHPStanDba \UnresolvableQueryMixedTypeException ;
12
13
use staabm \PHPStanDba \UnresolvableQueryStringTypeException ;
13
14
@@ -71,11 +72,23 @@ public function testBug536(): void
71
72
72
73
public function testBug548 (): void
73
74
{
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
+ ]);
75
82
}
76
83
77
84
public function testBug547 (): void
78
85
{
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
+ ]);
80
93
}
81
94
}
You can’t perform that action at this time.
0 commit comments