diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-11 19:54:41 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-11 19:54:57 +0900 |
| commit | a40d5170b75a793badc7dbc59e6b1983c37fa7af (patch) | |
| tree | 35af98d03622753d468b7dea12717c986be96ad7 /crates/shirabe/src/factory.rs | |
| parent | 86ed0a83afaafbaba0b6849ca3cae89961df956f (diff) | |
| download | php-shirabe-a40d5170b75a793badc7dbc59e6b1983c37fa7af.tar.gz php-shirabe-a40d5170b75a793badc7dbc59e6b1983c37fa7af.tar.zst php-shirabe-a40d5170b75a793badc7dbc59e6b1983c37fa7af.zip | |
feat(php-shim): implement trivial PHP-compatible stub functions
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/factory.rs')
| -rw-r--r-- | crates/shirabe/src/factory.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs index ab0d389..6d788f4 100644 --- a/crates/shirabe/src/factory.rs +++ b/crates/shirabe/src/factory.rs @@ -10,7 +10,7 @@ use shirabe_php_shim::{ RuntimeException, UnexpectedValueException, ZipArchive, array_keys, array_replace_recursive, class_exists, dirname, extension_loaded, file_exists, file_get_contents, file_put_contents, implode, in_array, is_array, is_dir, is_file, is_string, json_decode, mkdir, pathinfo, - realpath, str_replace, strpos, strtr, substr, trim, + realpath, rename, str_replace, strpos, strtr, substr, trim, }; use crate::autoload::AutoloadGenerator; @@ -182,7 +182,7 @@ impl Factory { { let from = format!("{}/cache", home); let to = format!("{}/Library/Caches/composer", user_dir); - let _ = Silencer::call(|| Ok::<bool, anyhow::Error>(Platform::rename(&from, &to))); + let _ = Silencer::call(|| Ok::<bool, anyhow::Error>(rename(&from, &to))); } return Ok(format!("{}/Library/Caches/composer", user_dir)); |
