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-external-packages/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-external-packages/src')
| -rw-r--r-- | crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs index 31a0e50..3c1be6d 100644 --- a/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs +++ b/crates/shirabe-external-packages/src/symfony/component/finder/spl_file_info.rs @@ -1,6 +1,12 @@ #[derive(Debug)] pub struct SplFileInfo; +impl std::fmt::Display for SplFileInfo { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", self.get_pathname()) + } +} + impl SplFileInfo { pub fn new(_path: &str) -> Self { todo!() |
