mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-05 04:49:44 +00:00
DX: [main] Validation phone number: add some parameters for debugging
This commit is contained in:
@@ -72,7 +72,7 @@ final class ValidPhonenumber extends ConstraintValidator
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (false === $isValid) {
|
if (false === $isValid) {
|
||||||
$this->context->addViolation($message, ['%phonenumber%' => $value]);
|
$this->context->addViolation($message, ['%phonenumber%' => $value, '%formatted%' => $this->phonenumberHelper->format($value)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user