Skip to content

Commit

Permalink
bug #17514 [2.7][Asset] Add defaultNull to version configuration (ewgRa)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][Asset] Add defaultNull to version configuration

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #14832, #16511
| License       | MIT
| Doc PR        |

In #16511 PR was omitted defaultNull version for one case.

Commits
-------

65adb72 add defaultNull to version
  • Loading branch information
fabpot committed Jan 25, 2016
2 parents 93d5bf7 + 65adb72 commit e68ebab
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -554,6 +554,7 @@ private function addAssetsSection(ArrayNodeDefinition $rootNode)
->fixXmlConfig('base_url')
->children()
->scalarNode('version')
->defaultNull()
->beforeNormalization()
->ifTrue(function ($v) { return '' === $v; })
->then(function ($v) { return; })
Expand Down

0 comments on commit e68ebab

Please sign in to comment.