diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-09 08:26:52 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-09 08:26:52 +0900 |
| commit | f000cdf5770c3b20bf406367d1d3a65ef215e2fd (patch) | |
| tree | ecd1be6e30ee793fe04956f701d70d3f40138a4a /crates | |
| parent | 20a876d44a7f7fe8f5d4cc77eb79a9a359aaf150 (diff) | |
| download | php-shirabe-f000cdf5770c3b20bf406367d1d3a65ef215e2fd.tar.gz php-shirabe-f000cdf5770c3b20bf406367d1d3a65ef215e2fd.tar.zst php-shirabe-f000cdf5770c3b20bf406367d1d3a65ef215e2fd.zip | |
refactor(php-shim): remove call_user_func, which has no callers
Its doc-by-reference sibling call_user_func_array now carries the full
reason text.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/shirabe-php-shim/src/runtime.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/crates/shirabe-php-shim/src/runtime.rs b/crates/shirabe-php-shim/src/runtime.rs index b95c594f..1ca051fb 100644 --- a/crates/shirabe-php-shim/src/runtime.rs +++ b/crates/shirabe-php-shim/src/runtime.rs @@ -378,17 +378,9 @@ pub fn memory_get_peak_usage(_real_usage: bool) -> i64 { 0 } -pub fn call_user_func<T>(_callback: &str, _args: &[PhpMixed]) -> T -where - T: From<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_user_func_array(_callback: &str, _args: &PhpMixed) -> PhpMixed { - // TODO(php-runtime): see call_user_func. + // 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!() } |
