@@ -94,7 +94,9 @@ public function testValidTypes(): void {
9494 }
9595
9696 public function testShapeWithExtraKey (): void {
97- self :: markTestSkipped(' Only enums are validated at runtime.' );
97+ (): void ==> {
98+ self :: markTestSkipped(' Only enums are validated at runtime.' );
99+ }();
98100 expect (() ==> {
99101
100102 $x =
@@ -107,7 +109,9 @@ public function testShapeWithExtraKey(): void {
107109 }
108110
109111 public function testShapeWithMissingOptionalKey (): void {
110- self :: markTestSkipped(' Only enums are validated at runtime.' );
112+ (): void ==> {
113+ self :: markTestSkipped(' Only enums are validated at runtime.' );
114+ }();
111115 expect (() ==> {
112116
113117 /* HH_IGNORE_ERROR[4057] */
@@ -117,7 +121,9 @@ public function testShapeWithMissingOptionalKey(): void {
117121 }
118122
119123 public function testShapeWithMissingRequiredKey (): void {
120- self :: markTestSkipped(' Only enums are validated at runtime.' );
124+ (): void ==> {
125+ self :: markTestSkipped(' Only enums are validated at runtime.' );
126+ }();
121127 expect (() ==> {
122128 /* HH_IGNORE_ERROR[4057] */
123129 $x = <test:attribute-types myshape = { shape ()} /> ;
@@ -132,7 +138,9 @@ public function testValidArrayKeys(): void {
132138 }
133139
134140 public function testInvalidArrayKeys (): void {
135- self :: markTestSkipped(' Only enums are validated at runtime.' );
141+ (): void ==> {
142+ self :: markTestSkipped(' Only enums are validated at runtime.' );
143+ }();
136144 expect (() ==> {
137145 $x =
138146 <test:attribute-types
@@ -150,7 +158,9 @@ public function testValidNum(): void {
150158 }
151159
152160 public function testInvalidNum (): void {
153- self :: markTestSkipped(' Only enums are validated at runtime.' );
161+ (): void ==> {
162+ self :: markTestSkipped(' Only enums are validated at runtime.' );
163+ }();
154164
155165 expect (() ==> {
156166 $x =
@@ -332,7 +342,9 @@ public function testNumericPrefixStringAsFloat(): void {
332342 }
333343
334344 public function testNotAContainerAsArray (): void {
335- self :: markTestSkipped(' Only enums are validated at runtime.' );
345+ (): void ==> {
346+ self :: markTestSkipped(' Only enums are validated at runtime.' );
347+ }();
336348 expect (() ==> {
337349 $x =
338350 <test:attribute-types
@@ -344,7 +356,9 @@ public function testNotAContainerAsArray(): void {
344356 }
345357
346358 public function testHackContainerAsArray (): void {
347- self :: markTestSkipped(' Only enums are validated at runtime.' );
359+ (): void ==> {
360+ self :: markTestSkipped(' Only enums are validated at runtime.' );
361+ }();
348362 expect (() ==> {
349363 $x =
350364 <test:attribute-types
@@ -354,7 +368,9 @@ public function testHackContainerAsArray(): void {
354368 }
355369
356370 public function testIncompatibleObjectAsObject (): void {
357- self :: markTestSkipped(' Only enums are validated at runtime.' );
371+ (): void ==> {
372+ self :: markTestSkipped(' Only enums are validated at runtime.' );
373+ }();
358374 expect (() ==> {
359375 $x =
360376 <test:attribute-types
@@ -366,7 +382,9 @@ public function testIncompatibleObjectAsObject(): void {
366382 }
367383
368384 public function testPassingArrayAsVector (): void {
369- self :: markTestSkipped(' Only enums are validated at runtime.' );
385+ (): void ==> {
386+ self :: markTestSkipped(' Only enums are validated at runtime.' );
387+ }();
370388 expect (() ==> {
371389 $x =
372390 <test:attribute-types
@@ -433,7 +451,9 @@ public function testSpecialAttributes(): void {
433451 }
434452
435453 public function testRenderCallableAttribute (): void {
436- self :: markTestSkipped(' This type has been unsupported since 2.0' );
454+ (): void ==> {
455+ self :: markTestSkipped(' This type has been unsupported since 2.0' );
456+ }();
437457 expect (() ==> {
438458 $x =
439459 <test:callable-attribute
0 commit comments