From 25f735f78aa24e01702fab08393b418e377ada7f Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 27 Jan 2016 08:19:38 +0100 Subject: [PATCH] remove default null value for asset version Setting `null` as the version of a package means that it uses the empty version strategy. However, omitting the `version` option entirely was meant to fall back to the default version strategy. This is not possible when the default version value is `null` as there is no way to remove it. --- .../Bundle/FrameworkBundle/DependencyInjection/Configuration.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php index 8cbb97a2c0ca3..c1430f13c5186 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php @@ -558,7 +558,6 @@ private function addAssetsSection(ArrayNodeDefinition $rootNode) ->fixXmlConfig('base_url') ->children() ->scalarNode('version') - ->defaultNull() ->beforeNormalization() ->ifTrue(function ($v) { return '' === $v; }) ->then(function ($v) { return; })