mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
fix sf4 deprecated: cannotBeEmpty() is not allowed with arrayNode
This commit is contained in:
parent
97a4deb159
commit
fb5f3532a1
@ -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')
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user