This commit is contained in:
Pol Dellaiera
2022-02-22 11:10:54 +01:00
parent 68a64aa67f
commit e1b3719746
3 changed files with 150 additions and 4 deletions

View File

@@ -37,15 +37,13 @@ final class ValidPhonenumber extends ConstraintValidator
*/
public function validate($value, Constraint $constraint)
{
dump($value);
if (false === $this->phonenumberHelper->isPhonenumberValidationConfigured()) {
$this->logger->debug('[phonenumber] skipping validation due to not configured helper');
return;
}
if (empty($value)) {
if ('' === $value) {
return;
}