Skip to content

Commit

Permalink
Fixed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sebprt committed Oct 10, 2023
1 parent 3048076 commit faa5f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/Extractor.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function getConfigTreeBuilder(): Config\Definition\Builder\TreeBuilder
->validate()
->ifTrue(fn ($data) => \array_key_exists('reference_entity', $data)
&& \array_key_exists('type', $data)
&& !\in_array($data['type'], ['referenceEntity', 'referenceEntityAttributeOption'], true))
&& !\in_array($data['type'], ['referenceEntityRecord', 'referenceEntityAttributeOption'], true))
->thenInvalid('The reference_entity option should only be used with the "referenceEntity" and "referenceEntityAttributeOption" endpoints.')
->end()
->validate()
Expand Down

0 comments on commit faa5f83

Please sign in to comment.