fix error for empty type configuration
This commit is contained in:
parent
55bfee22e8
commit
cf9f7c6be8
2 changed files with 22 additions and 0 deletions
|
|
@ -192,6 +192,10 @@ class Configuration implements ConfigurationInterface
|
|||
->useAttributeAsKey('name')
|
||||
->prototype('array')
|
||||
->treatNullLike(array())
|
||||
->beforeNormalization()
|
||||
->ifNull()
|
||||
->thenEmptyArray()
|
||||
->end()
|
||||
// BC - Renaming 'mappings' node to 'properties'
|
||||
->beforeNormalization()
|
||||
->ifTrue(function($v) { return array_key_exists('mappings', $v); })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue