Skip to content

Commit 501c52c

Browse files
biozshockXWB
authored andcommitted
Check that element have at least one value (#1519)
1 parent 6dad59d commit 501c52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ private function addClientsSection(ArrayNodeDefinition $rootNode)
458458
->ifTrue(function ($v) { return !is_array($v); })
459459
->then(function ($v) { return array($v); })
460460
->end()
461-
->cannotBeEmpty()
461+
->requiresAtLeastOneElement()
462462
->defaultValue([400, 403, 404])
463463
->prototype('scalar')->end()
464464
->end()

0 commit comments

Comments
 (0)