Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Sep 1, 2022
1 parent 1e195f2 commit 63c75dc
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -1148,6 +1148,10 @@ private static function handleArrayAccessOnArray(
&& (($in_assignment && $stmt->dim)
|| $original_type instanceof TTemplateParam
|| !$offset_type->isInt())
&& !($type instanceof TNonEmptyList
&& $offset_type->isSingleIntLiteral()
&& $offset_type->getSingleIntLiteral() === 0
)
) {
$type = new TArray([Type::getInt(), $type->type_param]);
}
Expand Down

0 comments on commit 63c75dc

Please sign in to comment.