Skip to content

Commit

Permalink
Check that element have at least one value (#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
biozshock authored and XWB committed May 29, 2019
1 parent 6dad59d commit 501c52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DependencyInjection/Configuration.php
Expand Up @@ -458,7 +458,7 @@ private function addClientsSection(ArrayNodeDefinition $rootNode)
->ifTrue(function ($v) { return !is_array($v); })
->then(function ($v) { return array($v); })
->end()
->cannotBeEmpty()
->requiresAtLeastOneElement()
->defaultValue([400, 403, 404])
->prototype('scalar')->end()
->end()
Expand Down

0 comments on commit 501c52c

Please sign in to comment.