Skip to content

Commit c86f94d

Browse files
Forward type knowledge
1 parent 81c6b01 commit c86f94d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/element/RootElement.hack

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ abstract xhp class RootElement
162162
$attributes = dict[];
163163
$data_and_aria = dict[];
164164
foreach (static::__xhpAttributeDeclaration() as $key => $info) {
165+
invariant($info is AnyArray<_, _>, 'This value shuold have been vecish');
165166
$value = $info[2];
166167
if ($value is nonnull) {
167168
if (self::isDataOrAria($key)) {

0 commit comments

Comments
 (0)