[ConfigDumpReference] avoid notice for variable nodes

This commit is contained in:
Bilal Amarni 2012-10-19 15:53:01 +03:00
parent dba9bc3595
commit 3553276af2

View File

@ -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 = '[]';
}
}
}
}