Skip to content

Commit bebca95

Browse files
committed
do not validate empty values
1 parent bd99764 commit bebca95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Constraints/UrlValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function validate($value, Constraint $constraint)
4848
throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Url');
4949
}
5050

51-
if (null === $value) {
51+
if (null === $value || '' === $value) {
5252
return;
5353
}
5454

0 commit comments

Comments
 (0)