fix: NumberClasss invalid_message

This commit is contained in:
Ondrej Vlach 2024-01-18 22:23:53 +01:00
parent 64667cc24c
commit 98362e0379
Signed by: ovlach
GPG Key ID: 4FF1A23B4914DE70

View File

@ -23,7 +23,7 @@ class QRCodeMoneyType extends AbstractType
public function buildForm(FormBuilderInterface $builder, array $options): void
{
$builder
->add('amount', NumberType::class)
->add('amount', NumberType::class, ['invalid_message' => 'messages.not_valid_amount'])
->add('currency', ChoiceType::class, [
'choices' => array_combine(
iterator_to_array($this->currencyLister->getCurrencies()),