diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php b/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php index c70fa64e2..828ef6e05 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/AssertionFinder.php @@ -145,13 +145,6 @@ class AssertionFinder $source ); - /** @var PhpParser\Node\Expr\FuncCall $counted_expr */ - $var_name = ExpressionAnalyzer::getArrayVarId( - $counted_expr->args[0]->value, - $this_class_name, - $source - ); - if ($var_name) { if (self::hasReconcilableNonEmptyCountEqualityCheck($conditional)) { $if_types[$var_name] = [['non-empty-countable']];