mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
flag alwaysTruthy conditions as redundant
This commit is contained in:
parent
f496ccaa25
commit
44bfa2c21c
@ -242,7 +242,7 @@ class IfConditionalAnalyzer
|
||||
// fall through
|
||||
}
|
||||
}
|
||||
} elseif ($cond_type->isTrue()) {
|
||||
} elseif ($cond_type->isAlwaysTruthy()) {
|
||||
if ($cond_type->from_docblock) {
|
||||
if (IssueBuffer::accepts(
|
||||
new RedundantConditionGivenDocblockType(
|
||||
|
Loading…
Reference in New Issue
Block a user