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

Commit 11d4f64

Browse files
committed
fix register_shutdown_function() call for HHVM 4.27+
1 parent 50dbd4d commit 11d4f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_Private/Filesystem.hack

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ final class Filesystem {
1616
): string {
1717
$fname = \tempnam(\sys_get_temp_dir(), $prefix);
1818
if ($cleanup) {
19-
\register_shutdown_function(array(Filesystem::class, 'remove'), $fname);
19+
\register_shutdown_function(() ==> Filesystem::remove($fname));
2020
}
2121
return $fname;
2222
}

0 commit comments

Comments
 (0)