File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments