DX: [main] Validation phone number: add some parameters for debugging

This commit is contained in:
Julien Fastré 2022-10-19 14:16:20 +02:00
parent 31f048b8e8
commit 1b5d5a28fd

View File

@ -72,7 +72,7 @@ final class ValidPhonenumber extends ConstraintValidator
}
if (false === $isValid) {
$this->context->addViolation($message, ['%phonenumber%' => $value]);
$this->context->addViolation($message, ['%phonenumber%' => $value, '%formatted%' => $this->phonenumberHelper->format($value)]);
}
}
}