Skip to content

Commit 4b00265

Browse files
author
Adam Szaraniec
committed
use strict compare in url validator
1 parent 4f3afd5 commit 4b00265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Constraints/UrlValidator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function validate($value, Constraint $constraint)
8686
Url::CHECK_DNS_TYPE_SOA,
8787
Url::CHECK_DNS_TYPE_SRV,
8888
Url::CHECK_DNS_TYPE_TXT,
89-
))) {
89+
), true)) {
9090
throw new InvalidOptionsException(sprintf('Invalid value for option "checkDNS" in constraint %s', get_class($constraint)), array('checkDNS'));
9191
}
9292

0 commit comments

Comments
 (0)