Skip to content

Commit d524069

Browse files
Convert class<T> to string for hhvm version 25.7.0
1 parent 55b0c16 commit d524069

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/DumpTest.hack

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ function dump_test(TestChain\Chain $chain)[]: TestChain\Chain {
1111
$options = shape(
1212
'custom_dumpers' => dict[
1313
'bool' => ($v)[] ==> 'intercepted('.($v as bool ? 'true' : 'false').')',
14-
MyOpaqueInt::class => ($v)[] ==> 'opaque_int('.$v as int.')',
14+
(string)MyOpaqueInt::class => ($v)[] ==> 'opaque_int('.$v as int.')',
1515
],
1616
'enum_definitions' => vec[ExprDump\EnumDefinition::create(MyEnum::class)],
1717
'shape_key_namer' => ($parent, $key)[] ==> {
18-
$const = '\\'.MyClass::class.'::';
18+
$const = '\\'.(string)MyClass::class.'::';
1919

2020
if ($parent === MyShape::class) {
2121
return dict<arraykey, string>[
@@ -236,9 +236,5 @@ function create_test_case<reify T>(
236236
T $expression,
237237
string $expected,
238238
)[]: (T, ExprDump\Dumper<T>, string) {
239-
return tuple(
240-
$expression,
241-
ExprDump\create_dumper<T>($options),
242-
$expected,
243-
);
239+
return tuple($expression, ExprDump\create_dumper<T>($options), $expected);
244240
}

0 commit comments

Comments
 (0)