Skip to content

Commit

Permalink
Merge pull request #57 from php-etl/feature/reference-entities-extractor
Browse files Browse the repository at this point in the history
Fixed configuration
  • Loading branch information
sebprt authored Oct 10, 2023
2 parents 1750546 + faa5f83 commit b2cc66b
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 b2cc66b

Please sign in to comment.