Skip to content
This repository was archived by the owner on Sep 1, 2023. It is now read-only.

Commit 597b0f9

Browse files
committed
explicit "as arraykey" in UntypedArraySpec
required by new HHVM versions which have stronger typing for untyped `array` values
1 parent 6d1f4d0 commit 597b0f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TypeSpec/__Private/UntypedArraySpec.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ final class UntypedArraySpec extends TypeSpec<array> {
2626

2727
$out = [];
2828
foreach ($value as $k => $v) {
29-
$out[$k] = $v;
29+
$out[$k as arraykey] = $v;
3030
}
3131
return $out;
3232
}

0 commit comments

Comments
 (0)