From 38621c67917fd015f884ea04517791cdc5058c6d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 11 Aug 2026 23:28:40 +0900 Subject: chore(php-shim): drop the substring predicate ports str_contains(), str_starts_with() and str_ends_with() were thin wrappers over the str methods of the same semantics. Call sites now use contains()/starts_with()/ends_with() directly. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/console/application.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/shirabe/src/console/application.rs') diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index 197ddfbd..b18eaa02 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -62,8 +62,8 @@ use shirabe_php_shim::{ disk_free_space, extension_loaded, file_exists, file_get_contents, file_put_contents, function_exists, getcwd, getmypid, glob, ini_set, is_array, is_dir, is_file, is_string, json_decode, memory_get_peak_usage, memory_get_usage, microtime, php_regex, php_uname, - posix_getuid, random_bytes, realpath, restore_error_handler, round, str_contains, str_replace, - strpos, strtoupper, sys_get_temp_dir, time, unlink, + posix_getuid, random_bytes, realpath, restore_error_handler, round, str_replace, strpos, + strtoupper, sys_get_temp_dir, time, unlink, }; use shirabe_seld_json_lint::ParsingException; use shirabe_symfony_console::application::Application as BaseApplication; @@ -300,7 +300,7 @@ impl Application { let message = exception.to_string(); if exception.is_instanceof::() - && str_contains(&message, "Unable to use a proxy") + && message.contains("Unable to use a proxy") { io.write_error3( "The following exception indicates your proxy is misconfigured", @@ -312,7 +312,7 @@ impl Application { if Platform::is_windows() && exception.is_instanceof::() - && str_contains(&message, "unable to get local issuer certificate") + && message.contains("unable to get local issuer certificate") { let avast_detect = glob("C:\\Program Files\\Avast*"); let avast_detect_pm = PhpMixed::List( -- cgit v1.3.1-4-g156e