mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-12 03:15:35 +08:00
Update src/SPC/store/SourcePatcher.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -181,7 +181,7 @@ class SourcePatcher
|
|||||||
// Copy patch from phar
|
// Copy patch from phar
|
||||||
if (str_starts_with($patch_str, 'phar://')) {
|
if (str_starts_with($patch_str, 'phar://')) {
|
||||||
$filename = pathinfo($patch_file, PATHINFO_BASENAME);
|
$filename = pathinfo($patch_file, PATHINFO_BASENAME);
|
||||||
file_put_contents(SOURCE_PATH . "{$filename}", file_get_contents($patch_file));
|
file_put_contents(SOURCE_PATH . "/{$filename}", file_get_contents($patch_file));
|
||||||
$patch_str = FileSystem::convertPath(SOURCE_PATH . "/{$filename}");
|
$patch_str = FileSystem::convertPath(SOURCE_PATH . "/{$filename}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user