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

Commit 76d902e

Browse files
committed
run hhast-migrate --ref-to-inout
1 parent dfc4a26 commit 76d902e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/UriMapBuilder.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ final class UriMapBuilder<TBase as IncludeInUriMap> {
4141
}
4242

4343
foreach ($map as $submap) {
44-
\natsort(&$submap);
44+
\natsort(inout $submap);
4545
}
4646

4747
return $map

tests/RouterCLILookupCodegenBuilderTest.hack

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ final class RouterCLILookupCodegenBuilderTest extends BaseCodegenTestCase {
5454
$path,
5555
})->map($x ==> \escapeshellarg($x)),
5656
),
57-
&$output,
58-
&$exit_code,
57+
inout $output,
58+
inout $exit_code,
5959
);
6060
$output = \implode("\n", $output);
6161
expect($exit_code)->toBeSame(0);
@@ -76,8 +76,8 @@ final class RouterCLILookupCodegenBuilderTest extends BaseCodegenTestCase {
7676
self::CODEGEN_PATH,
7777
})->map($x ==> \escapeshellarg($x)),
7878
),
79-
&$output,
80-
&$exit_code,
79+
inout $output,
80+
inout $exit_code,
8181
);
8282
$output = \implode("\n", $output);
8383
expect($exit_code)->toBeGreaterThan(0);

tests/TestTypechecksTestTrait.hack

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ trait TestTypechecksTestTrait {
2121
$out_array = [];
2222
\exec(
2323
'hh_client',
24-
&$out_array,
25-
&$exit_code,
24+
inout $out_array,
25+
inout $exit_code,
2626
);
2727
expect($exit_code)->toBeSame(0, "Typechecker errors found");
2828
}

0 commit comments

Comments
 (0)