Skip to content

Commit 266f332

Browse files
committed
[rector] Rector fixes
1 parent d3ccf4e commit 266f332

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/Configuration.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,12 +186,10 @@ private function getChildTreeBuilder(string $name): TreeBuilder
186186
->always(mutuallyDependentFields('list', 'expression'))
187187
->end()
188188
->validate()
189-
->ifTrue(function (array $value) {
190-
return \array_key_exists('expression', $value)
191-
&& \array_key_exists('class', $value)
192-
&& !\array_key_exists('object', $value)
193-
&& !\array_key_exists('collection', $value);
194-
})
189+
->ifTrue(fn(array $value) => \array_key_exists('expression', $value)
190+
&& \array_key_exists('class', $value)
191+
&& !\array_key_exists('object', $value)
192+
&& !\array_key_exists('collection', $value))
195193
->thenInvalid('Your configuration should not contain both the "expression" and the "class" alone, maybe you forgot a "collection", "list" or an "object" field.')
196194
->end()
197195
->children()

0 commit comments

Comments
 (0)