Skip to content

Commit

Permalink
fix register_shutdown_function() call for HHVM 4.27+
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Oct 11, 2019
1 parent 50dbd4d commit 11d4f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_Private/Filesystem.hack
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ final class Filesystem {
): string {
$fname = \tempnam(\sys_get_temp_dir(), $prefix);
if ($cleanup) {
\register_shutdown_function(array(Filesystem::class, 'remove'), $fname);
\register_shutdown_function(() ==> Filesystem::remove($fname));
}
return $fname;
}
Expand Down

0 comments on commit 11d4f64

Please sign in to comment.