From cac18ef73a39b4ac41fa4d6ccb753804d4c42cb7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 00:31:45 +0900 Subject: feat(php-shim): implement count() Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/console/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/shirabe/src/console') diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index 146767d..4e31577 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -1116,7 +1116,7 @@ impl Application { .map(|s| Box::new(PhpMixed::String(s.clone()))) .collect(), ); - if is_array(&avast_detect_pm) && count(&avast_detect_pm) != 0 { + if is_array(&avast_detect_pm) && avast_detect.len() != 0 { io.write_error3("The following exception indicates a possible issue with the Avast Firewall", true, io_interface::QUIET); io.write_error3( "Check https://getcomposer.org/local-issuer for details", -- cgit v1.3.1