You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/PHPStan/Rules/Comparison/ConstantLooseComparisonRuleTest.php
+8-2
Original file line number
Diff line number
Diff line change
@@ -210,15 +210,21 @@ public function testBug11694(): void
210
210
39,
211
211
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
212
212
],
213
+
[
214
+
'Loose comparison using == between true and int<10, 20> will always evaluate to true.',
215
+
41,
216
+
],
217
+
[
218
+
'Loose comparison using == between int<10, 20> and true will always evaluate to true.',
219
+
42,
220
+
],
213
221
[
214
222
'Loose comparison using == between false and int<10, 20> will always evaluate to false.',
215
223
44,
216
-
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
217
224
],
218
225
[
219
226
'Loose comparison using == between int<10, 20> and false will always evaluate to false.',
220
227
45,
221
-
'Because the type is coming from a PHPDoc, you can turn off this check by setting <fg=cyan>treatPhpDocTypesAsCertain: false</> in your <fg=cyan>%configurationFile%</>.',
0 commit comments