Skip to content

Commit 2e116a7

Browse files
committed
Add validation to the matches key
1 parent 8a15f46 commit 2e116a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function getConfigTreeBuilder(): TreeBuilder
3333
->canBeDisabled()
3434
->children()
3535
->arrayNode('matches')
36+
->requiresAtLeastOneElement()
3637
->beforeNormalization()
3738
->ifString()
3839
->then(function (string $v): array { return [$v]; })

0 commit comments

Comments
 (0)