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

Commit ab4d907

Browse files
committed
Support 3.30
1 parent 7b25cd1 commit ab4d907

File tree

3 files changed

+92
-54
lines changed

3 files changed

+92
-54
lines changed

composer.lock

Lines changed: 90 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/TypeSpec/__Private/from_type_structure.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@
1818
use namespace Facebook\TypeAssert;
1919

2020
function from_type_structure<T>(TypeStructure<T> $ts): TypeSpec<T> {
21-
/* HH_FIXME[4108] 3.21 is not aware of optional_shape_field */
2221
if ($ts['optional_shape_field'] ?? false) {
23-
/* HH_FIXME[4108] 3.21 is not aware of optional_shape_field */
2422
$ts['optional_shape_field'] = false;
23+
/* HH_IGNORE_ERROR[4110] */
2524
return new OptionalSpec(from_type_structure($ts));
2625
}
2726
if ($ts['nullable'] ?? false) {

tests/TypeStructureTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ public function testUnsupportedType(): void {
469469
$ts = type_structure(TypeConstants::class, 'TStringArray');
470470
$ts['kind'] = TypeStructureKind::OF_GENERIC;
471471

472+
/* HH_IGNORE_ERROR[4110] */
472473
expect(() ==> TypeAssert\matches_type_structure($ts, null))->toThrow(
473474
UnsupportedTypeException::class,
474475
);

0 commit comments

Comments
 (0)