fix sf4 deprecated: cannotBeEmpty() is not allowed with arrayNode

This commit is contained in:
2020-07-22 12:48:06 +02:00
parent 97a4deb159
commit fb5f3532a1
2 changed files with 2 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ class Configuration implements ConfigurationInterface
->scalarNode('key')
->isRequired()->cannotBeEmpty()
->end()
->arrayNode('labels')->isRequired()->cannotBeEmpty()
->arrayNode('labels')->requiresAtLeastOneElement()
->children()
->scalarNode('lang')->isRequired()->cannotBeEmpty()
->example('fr')