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

This commit is contained in:
Tchama 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')

View File

@ -44,7 +44,7 @@ class PersonListWidgetFactory extends AbstractWidgetFactory
->info("Add some custom field to the view. Add the slug of some custom field"
. " if you want to override the view and show their value in the list")
->example(array("custom-field-slug-1", "custom-field-slug-2"))
->cannotBeEmpty()
->requiresAtLeastOneElement()
->end();
}