fix phar patch

This commit is contained in:
crazywhalecc
2023-05-01 12:50:01 +08:00
parent 85ac553ded
commit 280284e4c2
5 changed files with 17 additions and 29 deletions

View File

@@ -442,7 +442,7 @@ class FileSystem
private static function emitSourceExtractHook(string $name)
{
foreach ((self::$_extract_hook[$name] ?? []) as $hook) {
if ($hook($name) === true) {
if ($hook() === true) {
logger()->info('Patched source [' . $name . '] after extracted');
}
}