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

Commit 3804a7d

Browse files
committed
fix unit tests under recent HHVM
1 parent 162d0c3 commit 3804a7d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Reflection/ReflectionXHPAttribute.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ class ReflectionXHPAttribute {
9191
);
9292
$v = $this->extraType;
9393
invariant(
94-
\HH\is_php_array($v),
94+
$v is Container<_>,
9595
'Class name for attribute %s is not an array',
9696
$this->getName(),
9797
);
98-
return keyset($v);
98+
return keyset(/* HH_FIXME[4110] not limited to arraykey */ $v);
9999
}
100100

101101
/**

src/Reflection/ReflectionXHPChildrenDeclaration.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ReflectionXHPChildrenDeclaration {
4242

4343
<<__Memoize>>
4444
public function getType(): XHPChildrenDeclarationType {
45-
if (\HH\is_php_array($this->data)) {
45+
if ($this->data is Container<_>) {
4646
return XHPChildrenDeclarationType::EXPRESSION;
4747
}
4848
return XHPChildrenDeclarationType::assert($this->data);

0 commit comments

Comments
 (0)