Skip to content

Commit

Permalink
weird bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
limenet committed May 3, 2021
1 parent 67659c5 commit ad727f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Form/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ protected function getOptions(array $definition, array $formConfig): array
/** @var ChoicesInterface $choices */
$choices = $this->container->get($definition['provider']);
$options['choices'] = $choices->choices();
$options['choice_value'] = fn($a) => $a;
$options['choice_label'] = fn($choice, $key, $value) => $choices->choiceLabel($choice, $key, $value);
$options['choice_attr'] = fn($choice, $key, $value) => $choices->choiceAttribute($choice, $key, $value);
}
Expand Down

0 comments on commit ad727f5

Please sign in to comment.