Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
fix unit tests under recent HHVM
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed May 4, 2021
1 parent 162d0c3 commit 3804a7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Reflection/ReflectionXHPAttribute.hack
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ class ReflectionXHPAttribute {
);
$v = $this->extraType;
invariant(
\HH\is_php_array($v),
$v is Container<_>,
'Class name for attribute %s is not an array',
$this->getName(),
);
return keyset($v);
return keyset(/* HH_FIXME[4110] not limited to arraykey */ $v);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Reflection/ReflectionXHPChildrenDeclaration.hack
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class ReflectionXHPChildrenDeclaration {

<<__Memoize>>
public function getType(): XHPChildrenDeclarationType {
if (\HH\is_php_array($this->data)) {
if ($this->data is Container<_>) {
return XHPChildrenDeclarationType::EXPRESSION;
}
return XHPChildrenDeclarationType::assert($this->data);
Expand Down

0 comments on commit 3804a7d

Please sign in to comment.