Skip to content

Commit 8a67f08

Browse files
committed
Add .hack extension to the temporary file
1 parent 6df2054 commit 8a67f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HackfmtFormatter.hack

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class HackfmtFormatter implements ICodegenFormatter {
1919
$output = vec[];
2020
$exit_code = null;
2121

22-
$tempnam = \tempnam(\sys_get_temp_dir(), 'hack-codegen-hackfmt');
22+
$tempnam = \tempnam(\sys_get_temp_dir(), 'hack-codegen-hackfmt').'.hack';
2323

2424
$options = $this->getFormattedOptions();
2525

0 commit comments

Comments
 (0)