diff --git a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php index 631aeaa51f39..e152d6f0fe58 100644 --- a/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php +++ b/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php @@ -240,7 +240,7 @@ protected function addTags() $tags[$name][$id] = $ann; } } - $tags = var_export($tags, true); + $tags = $this->exportParameters($tags); return << - array ( - 'foo' => - array ( - 0 => - array ( - 'foo' => 'foo', - ), - 1 => - array ( - 'bar' => 'bar', - ), - ), - ), -); + static $tags = array( + 'foo' => array( + 'foo' => array( + 0 => array( + 'foo' => 'foo', + ), + 1 => array( + 'bar' => 'bar', + ), + ), + ), + ); return isset($tags[$name]) ? $tags[$name] : array(); }