Skip to content
Permalink
Browse files

Fix count

  • Loading branch information
muglug committed Jan 4, 2020
1 parent 37fb152 commit 8ecb8555e2abdaab391e35b0b20a4432fc231e2e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Psalm/Internal/Analyzer/Statements/Block/ForAnalyzer.php
@@ -105,8 +105,8 @@ public static function analyze(
}
}

if (count($stmt->init) === 1
&& count($stmt->cond) === 1
if (\count($stmt->init) === 1
&& \count($stmt->cond) === 1
&& $cond instanceof PhpParser\Node\Expr\BinaryOp
&& $cond->right instanceof PhpParser\Node\Scalar\LNumber
&& $cond->left instanceof PhpParser\Node\Expr\Variable

0 comments on commit 8ecb855

Please sign in to comment.
You can’t perform that action at this time.