mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +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')
|
->scalarNode('key')
|
||||||
->isRequired()->cannotBeEmpty()
|
->isRequired()->cannotBeEmpty()
|
||||||
->end()
|
->end()
|
||||||
->arrayNode('labels')->isRequired()->cannotBeEmpty()
|
->arrayNode('labels')->requiresAtLeastOneElement()
|
||||||
->children()
|
->children()
|
||||||
->scalarNode('lang')->isRequired()->cannotBeEmpty()
|
->scalarNode('lang')->isRequired()->cannotBeEmpty()
|
||||||
->example('fr')
|
->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"
|
->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")
|
. " if you want to override the view and show their value in the list")
|
||||||
->example(array("custom-field-slug-1", "custom-field-slug-2"))
|
->example(array("custom-field-slug-1", "custom-field-slug-2"))
|
||||||
->cannotBeEmpty()
|
->requiresAtLeastOneElement()
|
||||||
->end();
|
->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user