Skip to content

Commit 0873a5f

Browse files
author
Adam Szaraniec
committed
use strict compare in url validator
1 parent 4181091 commit 0873a5f

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
@@ -92,7 +92,7 @@ public function validate($value, Constraint $constraint)
9292
Url::CHECK_DNS_TYPE_SOA,
9393
Url::CHECK_DNS_TYPE_SRV,
9494
Url::CHECK_DNS_TYPE_TXT,
95-
))) {
95+
), true)) {
9696
throw new InvalidOptionsException(sprintf('Invalid value for option "checkDNS" in constraint %s', get_class($constraint)), array('checkDNS'));
9797
}
9898

0 commit comments

Comments
 (0)