diff --git a/src/Psalm/Checker/StatementsChecker.php b/src/Psalm/Checker/StatementsChecker.php index 2da11b23092..a6859fbba4c 100644 --- a/src/Psalm/Checker/StatementsChecker.php +++ b/src/Psalm/Checker/StatementsChecker.php @@ -271,7 +271,7 @@ public function check(array $stmts, Context $context, Context $loop_context = nu $expr->inferredType, Type::getString(), 'echo', - $i, + (int)$i, new CodeLocation($this->getSource(), $expr) ) === false) { return false;