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
$tipText = '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%</>.';
'Call to function is_null() with null will always evaluate to true.',
1068
+
14,
1069
+
$tipText,
1070
+
],
1071
+
]);
1072
+
}
1073
+
1074
+
#[RequiresPhp('>= 8.1')]
1075
+
publicfunctiontestBug12087c(): void
1076
+
{
1077
+
$tipText = '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%</>.';
'Call to function is_null() with null will always evaluate to true.',
1083
+
17,
1084
+
$tipText,
1085
+
],
1086
+
[
1087
+
'Call to function is_null() with 10 will always evaluate to false.',
1088
+
23,
1089
+
],
1090
+
[
1091
+
'Call to function is_null() with null will always evaluate to true.',
1092
+
29,
1093
+
],
1094
+
]);
1095
+
}
1096
+
1097
+
publicfunctiontestBug9666(): void
1098
+
{
1099
+
$tipText = '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%</>.';
Copy file name to clipboardExpand all lines: tests/PHPStan/Rules/Comparison/ImpossibleCheckTypeMethodCallRuleTest.php
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -275,6 +275,21 @@ public function testBug12473(): void
275
275
]);
276
276
}
277
277
278
+
#[RequiresPhp('>= 8.1')]
279
+
publicfunctiontestBug12087b(): void
280
+
{
281
+
$tipText = '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%</>.';
$tipText = '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