mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Fix puny bug
This commit is contained in:
parent
9b26dc8eab
commit
e542b876f8
@ -245,7 +245,7 @@ class StatementsChecker
|
||||
|
||||
$elseif_types = $this->_getTypeAssertions($elseif->cond, true);
|
||||
|
||||
if (!($stmt->cond instanceof PhpParser\Node\Expr\BinaryOp\BooleanAnd)) {
|
||||
if (!($elseif->cond instanceof PhpParser\Node\Expr\BinaryOp\BooleanAnd)) {
|
||||
$negated_types = array_merge($negated_types, self::_negateTypes($elseif_types));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user