From f05e1a55cf0d44e9611e06a3d7b4fccdcb90ce7b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 21 Jun 2026 17:42:32 +0900 Subject: refactor(php-shim): split filter_var into per-filter functions Replace the dispatch-on-constant filter_var() and filter_var_with_options() with dedicated filter_var_boolean/url/email/ip and filter_var_int_with_range, dropping the FILTER_VALIDATE_* constants and updating all call sites. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/autoload/class_loader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/autoload/class_loader.rs') diff --git a/crates/shirabe/src/autoload/class_loader.rs b/crates/shirabe/src/autoload/class_loader.rs index 73b5c06..daa5d97 100644 --- a/crates/shirabe/src/autoload/class_loader.rs +++ b/crates/shirabe/src/autoload/class_loader.rs @@ -4,10 +4,10 @@ use indexmap::IndexMap; use std::sync::{LazyLock, Mutex}; use shirabe_php_shim::{ - DIRECTORY_SEPARATOR, FILTER_VALIDATE_BOOLEAN, InvalidArgumentException, PhpMixed, array_merge, - array_values, call_user_func_array, defined, file_exists, filter_var, function_exists, - include_file, ini_get, spl_autoload_register, spl_autoload_unregister, - stream_resolve_include_path, strlen, strpos, strrpos, strtr, substr, + DIRECTORY_SEPARATOR, InvalidArgumentException, PhpMixed, array_merge, array_values, + call_user_func_array, defined, file_exists, function_exists, include_file, ini_get, + spl_autoload_register, spl_autoload_unregister, stream_resolve_include_path, strlen, strpos, + strrpos, strtr, substr, }; /// @var array -- cgit v1.3.1