diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-06 13:52:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-06 13:52:54 +0900 |
| commit | 558c22c072d7e7e77e0e5e3493a71727301f7c73 (patch) | |
| tree | 17848a50e165669774d5fb595cc92f10d6318efc /crates/shirabe-php-shim/src | |
| parent | ba22d3a98e8f3fbf50274180bfeb870a10d9ae55 (diff) | |
| download | php-shirabe-558c22c072d7e7e77e0e5e3493a71727301f7c73.tar.gz php-shirabe-558c22c072d7e7e77e0e5e3493a71727301f7c73.tar.zst php-shirabe-558c22c072d7e7e77e0e5e3493a71727301f7c73.zip | |
fix(self-update-command): resolve finder-related phase-b TODOs
- Add Display for SplFileInfo (PHP (string) cast -> getPathname) and use it
in clean_backups instead of a debug-format placeholder.
- Generalize iterator_to_array's signature to preserve the element type so
get_last_backup_version collects real SplFileInfo and returns the last
basename, instead of mapping every entry to PhpMixed::Null.
- Drop the stale builder-restructure TODO in get_old_installation_finder.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src')
| -rw-r--r-- | crates/shirabe-php-shim/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/shirabe-php-shim/src/lib.rs b/crates/shirabe-php-shim/src/lib.rs index acc81d9..e87cd2d 100644 --- a/crates/shirabe-php-shim/src/lib.rs +++ b/crates/shirabe-php-shim/src/lib.rs @@ -1486,9 +1486,9 @@ pub fn openssl_free_key(_key: PhpMixed) { todo!() } -pub fn iterator_to_array<T>(_iter: T) -> Vec<PhpMixed> +pub fn iterator_to_array<I>(iter: I) -> Vec<I::Item> where - T: IntoIterator<Item = PhpMixed>, + I: IntoIterator, { todo!() } |
