aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/json/json_manipulator.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/json/json_manipulator.rs')
-rw-r--r--crates/shirabe/src/json/json_manipulator.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/shirabe/src/json/json_manipulator.rs b/crates/shirabe/src/json/json_manipulator.rs
index ebbfff9..b9c6a5c 100644
--- a/crates/shirabe/src/json/json_manipulator.rs
+++ b/crates/shirabe/src/json/json_manipulator.rs
@@ -128,8 +128,7 @@ impl JsonManipulator {
JsonFile::encode(
&PhpMixed::String(str_replace("\\/", "/", &existing_owned)),
0
- )
- .unwrap_or_default(),
+ ),
m.get("separator").cloned().unwrap_or_default(),
constraint_owned
)
@@ -1024,7 +1023,7 @@ impl JsonManipulator {
if now_empty {
arr.insert(
name_owned.clone(),
- Box::new(PhpMixed::Object(ArrayObject::new())),
+ Box::new(PhpMixed::Object(ArrayObject::new(None))),
);
}
}
@@ -1068,7 +1067,7 @@ impl JsonManipulator {
if now_empty {
arr.insert(
name_capture.clone(),
- Box::new(PhpMixed::Object(ArrayObject::new())),
+ Box::new(PhpMixed::Object(ArrayObject::new(None))),
);
}
}