Fix: Remove empty node
parent
2200043a43
commit
ea333aa134
|
@ -193,6 +193,10 @@ class JsonConfigSource implements ConfigSourceInterface
|
||||||
{
|
{
|
||||||
$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $type, $name) {
|
$this->manipulateJson('removeSubNode', $type, $name, function (&$config, $type, $name) {
|
||||||
unset($config[$type][$name]);
|
unset($config[$type][$name]);
|
||||||
|
|
||||||
|
if (0 === count($config[$type])) {
|
||||||
|
unset($config[$type]);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue