Merge pull request #7925 from localheinz/fix/empty

Fix: Remove empty node
main
Jordi Boggiano 6 years ago committed by GitHub
commit f599ebf55b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -193,6 +193,10 @@ class JsonConfigSource implements ConfigSourceInterface
{
$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $type, $name) {
unset($config[$type][$name]);
if (0 === count($config[$type])) {
unset($config[$type]);
}
});
}

Loading…
Cancel
Save