This commit is contained in:
Fabien Potencier 2019-05-06 13:15:22 +02:00
parent fec95e01a2
commit 0807720ece

View File

@ -49,7 +49,7 @@ class CurrencyValidator extends ConstraintValidator
$value = (string) $value;
if (!Currencies::exists($value)) {
if (!Currencies::exists($value)) {
$this->context->buildViolation($constraint->message)
->setParameter('{{ value }}', $this->formatValue($value))
->setCode(Currency::NO_SUCH_CURRENCY_ERROR)