Skip to content

Commit 43faada

Browse files
author
Cristoforo Cervino
committed
cs-fix
1 parent a7e1e84 commit 43faada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Bridge/Transformer/ChoiceTransformer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ protected function defaultValueFrom(FormInterface $form)
3131
$formView = $form->createView();
3232
$defaultValueFromChoiceView = \array_reduce(
3333
$formView->vars['choices'],
34-
static fn(
34+
static fn (
3535
?string $carry,
3636
ChoiceView $choiceView
37-
): ?string => (null === $carry && $choiceView->data === $defaultValue) ? $choiceView->value : $carry
37+
): ?string => ($carry === null && $choiceView->data === $defaultValue) ? $choiceView->value : $carry
3838
);
3939
return $defaultValueFromChoiceView ?? $defaultValue;
4040
}

0 commit comments

Comments
 (0)