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
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -181,12 +181,10 @@ public function testBug11694(): void
181
181
[
182
182
"Loose comparison using == between '13foo' and int<10, 20> will always evaluate to false.",
183
183
29,
184
-
'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%</>.',
185
184
],
186
185
[
187
186
"Loose comparison using == between int<10, 20> and '13foo' will always evaluate to false.",
188
187
30,
189
-
'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%</>.',
190
188
],
191
189
]);
192
190
}
@@ -227,4 +225,15 @@ public function testBug11694(): void
0 commit comments