From 3553276af2282531ff3bcb00812d66bdf5db3178 Mon Sep 17 00:00:00 2001 From: Bilal Amarni Date: Fri, 19 Oct 2012 15:53:01 +0300 Subject: [PATCH] [ConfigDumpReference] avoid notice for variable nodes --- .../FrameworkBundle/Command/ConfigDumpReferenceCommand.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php index 36c0593a84..d735eac337 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php @@ -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 = '[]'; + } } } }