Skip to content

Commit

Permalink
Cast key to int
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Dec 9, 2016
1 parent e8c91bc commit 8992505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Checker/StatementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8992505

Please sign in to comment.