fixed CS
This commit is contained in:
parent
fec95e01a2
commit
0807720ece
@ -49,7 +49,7 @@ class CurrencyValidator extends ConstraintValidator
|
|||||||
|
|
||||||
$value = (string) $value;
|
$value = (string) $value;
|
||||||
|
|
||||||
if (!Currencies::exists($value)) {
|
if (!Currencies::exists($value)) {
|
||||||
$this->context->buildViolation($constraint->message)
|
$this->context->buildViolation($constraint->message)
|
||||||
->setParameter('{{ value }}', $this->formatValue($value))
|
->setParameter('{{ value }}', $this->formatValue($value))
|
||||||
->setCode(Currency::NO_SUCH_CURRENCY_ERROR)
|
->setCode(Currency::NO_SUCH_CURRENCY_ERROR)
|
||||||
|
Reference in New Issue
Block a user