Skip to content

Commit c6fe48b

Browse files
committed
Bugs fixed
1 parent b7a0392 commit c6fe48b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Bundle/JoseFramework/DependencyInjection/Source/Encryption/AbstractEncryptionSource.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,23 @@ public function getNodeDefinition(NodeDefinition $node)
3939
->useAttributeAsKey('name')
4040
->isRequired()
4141
->cannotBeEmpty()
42+
->requiresAtLeastOneElement()
4243
->scalarPrototype()->end()
4344
->end()
4445
->arrayNode('content_encryption_algorithms')
4546
->info('A list of supported content encryption algorithms.')
4647
->useAttributeAsKey('name')
4748
->isRequired()
4849
->cannotBeEmpty()
50+
->requiresAtLeastOneElement()
4951
->scalarPrototype()->end()
5052
->end()
5153
->arrayNode('compression_methods')
5254
->info('A list of supported compression methods.')
5355
->useAttributeAsKey('name')
5456
->defaultValue(['DEF'])
5557
->cannotBeEmpty()
58+
->requiresAtLeastOneElement()
5659
->scalarPrototype()->end()
5760
->end()
5861
->arrayNode('tags')

src/Bundle/JoseFramework/DependencyInjection/Source/Signature/AbstractSignatureSource.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function getNodeDefinition(NodeDefinition $node)
3939
->useAttributeAsKey('name')
4040
->isRequired()
4141
->cannotBeEmpty()
42+
->requiresAtLeastOneElement()
4243
->scalarPrototype()->end()
4344
->end()
4445
->arrayNode('tags')

0 commit comments

Comments
 (0)