Skip to content

Commit fd159c1

Browse files
Assert dynamic types in preparation for hhvm 25.11.0
1 parent 97e3709 commit fd159c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/element/RootElement.hack

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ abstract xhp class RootElement
6060
return $this->children;
6161
}
6262

63-
final public function getDataAndAriaAttributes(
64-
)[]: dict<string, arraykey> {
63+
final public function getDataAndAriaAttributes()[]: dict<string, arraykey> {
6564
return $this->dataAndAria;
6665
}
6766

@@ -275,7 +274,7 @@ abstract xhp class RootElement
275274
}
276275

277276
private static function typeName(mixed $mixed)[]: string {
278-
return \is_object($mixed) ? \get_class($mixed) : \gettype($mixed);
277+
return \is_object($mixed) ? \get_class($mixed) : \gettype($mixed) as string;
279278
}
280279

281280
private static function flattenChildren(

0 commit comments

Comments
 (0)