We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1810aeb commit 3b84457Copy full SHA for 3b84457
src/Configuration.php
@@ -19,9 +19,7 @@ public function getConfigTreeBuilder(): TreeBuilder
19
/* @phpstan-ignore-next-line */
20
$builder->getRootNode()
21
->validate()
22
- ->ifTrue(function (array $value) {
23
- return array_key_exists('extractor', $value) && array_key_exists('loader', $value);
24
- })
+ ->ifTrue(fn (array $value) => \array_key_exists('extractor', $value) && \array_key_exists('loader', $value))
25
->thenInvalid('Your configuration should either contain the "extractor" or the "loader" key, not both.')
26
->end()
27
->children()
0 commit comments