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
<?phpfunctioncheck(string$filename): bool
{
if (strpos($filename, ".suback.php") !== false || strpos($filename, "_backup") !== false) {
// we'll ignore .suback files, they are old upgrade backupsreturnfalse;
}
returntrue;
}
The latest psalm/phar 4.12.0 returns:
ERROR: RedundantCondition - t.php:4:9 - int can never contain false (see https://psalm.dev/122)
if (strpos($filename, ".suback.php") !== false || strpos($filename, "_backup") !== false) {
ERROR: RedundantCondition - t.php:4:55 - int can never contain false (see https://psalm.dev/122)
if (strpos($filename, ".suback.php") !== false || strpos($filename, "_backup") !== false) {
Consider the following code:
The latest psalm/phar
4.12.0
returns:While psalm.dev returns expected result
https://psalm.dev/r/0cc1635fe5
The text was updated successfully, but these errors were encountered: