From 4d974682134f20a816dde717fdbba8e76d9b10b8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 9 Aug 2026 08:28:07 +0900 Subject: refactor(installed-versions): merge the name lists without call_user_func_array The only live caller passed the constant 'array_merge', so the list concatenation is written out in place, as ClassLoader::get_prefixes already does. That leaves the shim function without callers. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe-php-shim/src/runtime.rs | 6 ------ 1 file changed, 6 deletions(-) (limited to 'crates/shirabe-php-shim') diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index 1ca051fb..6ad5bc29 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -378,12 +378,6 @@ pub fn memory_get_peak_usage(_real_usage: bool) -> i64 { 0 } -pub fn call_user_func_array(_callback: &str, _args: &PhpMixed) -> PhpMixed { - // TODO(php-runtime): invoking a function by name needs a runtime function registry; the shim has - // no way to resolve a callable from a string. - todo!() -} - pub fn call_php_callable(_callback: &PhpMixed, _args: &[PhpMixed]) -> PhpMixed { // TODO(php-runtime): PhpMixed carries no callable variant; a runtime callable cannot be invoked. todo!() -- cgit v1.3.1-4-g156e