bug #17514 [2.7][Asset] Add defaultNull to version configuration (ewgRa)

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
This commit is contained in:
Fabien Potencier 2016-01-25 08:26:37 +01:00
commit e68ebab1b1
1 changed files with 1 additions and 0 deletions

View File

@ -554,6 +554,7 @@ class Configuration implements ConfigurationInterface
->fixXmlConfig('base_url')
->children()
->scalarNode('version')
->defaultNull()
->beforeNormalization()
->ifTrue(function ($v) { return '' === $v; })
->then(function ($v) { return; })