From 0bd0c361297903888c1f53af67d547ef2858882f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 5 Jun 2026 05:10:50 +0900 Subject: refactor(json): make json encode helpers accept serde::Serialize Change json_encode/json_encode_ex and JsonFile::encode/encode_with_options to take a generic serde::Serialize value instead of &PhpMixed, implement Serialize for PhpMixed/ArrayObject, and drop the PhpMixed::String wrapping at JsonManipulator call sites in favor of passing raw values. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe-php-shim/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/shirabe-php-shim/Cargo.toml') diff --git a/crates/shirabe-php-shim/Cargo.toml b/crates/shirabe-php-shim/Cargo.toml index 881a979..30e132f 100644 --- a/crates/shirabe-php-shim/Cargo.toml +++ b/crates/shirabe-php-shim/Cargo.toml @@ -6,6 +6,7 @@ edition.workspace = true [dependencies] anyhow.workspace = true indexmap.workspace = true +serde.workspace = true zip.workspace = true [lints] -- cgit v1.3.1