aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/installer
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-08-15 09:10:16 +0900
committernsfisis <nsfisis@gmail.com>2026-08-15 09:10:16 +0900
commit9e5bb3e4253dda96345f4d1a3421077a72295048 (patch)
tree73237dd78c22e93fe6562a434bb5ffcb03055250 /crates/shirabe/src/installer
parent8724f55749a97fe6a6e232d1dd900a069f9b7533 (diff)
downloadphp-shirabe-9e5bb3e4253dda96345f4d1a3421077a72295048.tar.gz
php-shirabe-9e5bb3e4253dda96345f4d1a3421077a72295048.tar.zst
php-shirabe-9e5bb3e4253dda96345f4d1a3421077a72295048.zip
refactor(php-shim): take only the data argument in http_build_query
`http_build_query` ignores `numeric_prefix` because a string-keyed slice never holds an integer key, and every caller passes `"&"` as the separator. Drop both parameters and hard-code the separator. Callers that pass a map of scalar literals to `http_build_query_mixed` no longer need to build an `IndexMap<String, PhpMixed>` for it, so move them to the slice form. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/installer')
-rw-r--r--crates/shirabe/src/installer/installation_manager.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/shirabe/src/installer/installation_manager.rs b/crates/shirabe/src/installer/installation_manager.rs
index 2d21fb54..a9e66ccb 100644
--- a/crates/shirabe/src/installer/installation_manager.rs
+++ b/crates/shirabe/src/installer/installation_manager.rs
@@ -867,7 +867,7 @@ impl InstallationManager {
.collect();
http.insert(
"content".to_string(),
- PhpMixed::String(http_build_query(&params_vec, "", "&")),
+ PhpMixed::String(http_build_query(&params_vec)),
);
http.insert("timeout".to_string(), PhpMixed::Int(3));
opts.insert(