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

Commit 43ba171

Browse files
committed
Don't use vec[] in unit test
Only need to test UnsupportedTypeException (not IncorrectTypeException), and vec[] doesn't work in 3.12 or 3.15.
1 parent ec54f39 commit 43ba171

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/TypeStructureTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ public function testUnsupportedType(): void {
267267
$this->expectException(UnsupportedTypeException::class);
268268
TypeAssert::matchesTypeStructure(
269269
type_structure(C::class, 'TVec'),
270-
/* HH_IGNORE_ERROR[0000] cannot use experimental feature */
271-
vec[1, 2, 3],
270+
null,
272271
);
273272
}
274273
}

0 commit comments

Comments
 (0)