[ConfigDumpReference] avoid notice for variable nodes
This commit is contained in:
parent
dba9bc3595
commit
3553276af2
@ -213,6 +213,12 @@ EOF
|
||||
$default = 'false';
|
||||
} elseif (null === $default) {
|
||||
$default = '~';
|
||||
} elseif (is_array($default)) {
|
||||
if ($node->hasDefaultValue() && count($defaultArray = $node->getDefaultValue())) {
|
||||
$default = '';
|
||||
} elseif (!is_array($example)) {
|
||||
$default = '[]';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user