Skip to content

Commit 013fc00

Browse files
committed
bug #17605 [FrameworkBundle] remove default null value for asset version (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [FrameworkBundle] remove default null value for asset version | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | 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. Commits ------- 25f735f remove default null value for asset version
2 parents ad90c06 + 498f9d7 commit 013fc00

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ private function addAssetsSection(ArrayNodeDefinition $rootNode)
558558
->fixXmlConfig('base_url')
559559
->children()
560560
->scalarNode('version')
561-
->defaultNull()
562561
->beforeNormalization()
563562
->ifTrue(function ($v) { return '' === $v; })
564563
->then(function ($v) { return; })

0 commit comments

Comments
 (0)