Skip to content

Commit

Permalink
run hhast-migrate --ref-to-inout
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Sep 16, 2019
1 parent 3a0a7b0 commit 50dbd4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/BaseCodeBuilder.hack
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ abstract class BaseCodeBuilder {

// break into lines and add one by one to handle indentation
$lines = Str\split($code, "\n");
$last_line = \array_pop(&$lines);
$last_line = \array_pop(inout $lines);
foreach ($lines as $line) {
$this->addLine($line);
}
Expand Down
4 changes: 2 additions & 2 deletions src/HackfmtFormatter.hack
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ final class HackfmtFormatter implements ICodegenFormatter {
\file_put_contents($tempnam, $code);
\exec(
'hackfmt '.$options.' '.\escapeshellarg($tempnam),
&$output,
&$exit_code,
inout $output,
inout $exit_code,
);
} finally {
\unlink($tempnam);
Expand Down
2 changes: 1 addition & 1 deletion src/_Private/Vec.hack
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ function pop_backx<T>(inout Container<T> $list): T {
"%s called, but container is empty",
__FUNCTION__,
);
$last = \array_pop(&$list);
$last = \array_pop(inout $list);
return $last;
}

0 comments on commit 50dbd4d

Please sign in to comment.