From 558c22c072d7e7e77e0e5e3493a71727301f7c73 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Jun 2026 13:52:54 +0900 Subject: 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 --- crates/shirabe-php-shim/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe-php-shim/src/lib.rs') 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(_iter: T) -> Vec +pub fn iterator_to_array(iter: I) -> Vec where - T: IntoIterator, + I: IntoIterator, { todo!() } -- cgit v1.3.1