Skip to content

Commit

Permalink
Fix static analysis issue
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Apr 5, 2023
1 parent 5bdcf0e commit 6ee50d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Form/Type/MoneyType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ class MoneyType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
/** @var non-empty-string $currency */
$currency = $options['currency'];

$builder->addModelTransformer(
new MoneyToIntegerTransformer($options['currency'])
new MoneyToIntegerTransformer($currency)
);
}

Expand Down

0 comments on commit 6ee50d7

Please sign in to comment.