@@ -222,6 +222,8 @@ class JsonManipulator
}
+ } else {
+ $childrenClean = $children;
// no child data left, $name was the only key in
@@ -347,6 +347,27 @@ class JsonManipulatorTest extends \PHPUnit_Framework_TestCase
+'
+ ),
+ 'works on undefined ones' => array(
+ '{
+ "repositories": {
+ "main": {
+ "foo": "bar",
+ "bar": "baz"
+ }
+}',
+ 'removenotthere',
+ true,
+}
'
),
'works on empty repos' => array(