Skip to content
Permalink
Browse files
explicit "as arraykey" in UntypedArraySpec
required by new HHVM versions which have stronger typing for untyped `array` values
  • Loading branch information
jjergus committed Oct 24, 2019
1 parent 6d1f4d0 commit 597b0f9417b91268cc6e8d866a0b5f964193bf72
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/TypeSpec/__Private/UntypedArraySpec.hack
@@ -26,7 +26,7 @@ final class UntypedArraySpec extends TypeSpec<array> {

$out = [];
foreach ($value as $k => $v) {
$out[$k] = $v;
$out[$k as arraykey] = $v;
}
return $out;
}

0 comments on commit 597b0f9

Please sign in to comment.