1
0
Fork 0

Fix: Remove empty node

pull/7925/head
Andreas Möller 2019-01-28 16:46:58 +01:00
parent 2200043a43
commit ea333aa134
No known key found for this signature in database
GPG Key ID: 9FB20A0BAF60E11F
1 changed files with 4 additions and 0 deletions

View File

@ -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]);
}
});
}