Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit be0b1b4

Browse files
committed
Fixed coding standard
1 parent 9085c40 commit be0b1b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function validate($value, Constraint $constraint)
8080

8181
if ($constraint->checkDNS) {
8282
// backwards compatibility
83-
if ($constraint->checkDNS === true) {
83+
if (true === $constraint->checkDNS) {
8484
$constraint->checkDNS = Url::CHECK_DNS_TYPE_ANY;
8585
@trigger_error(sprintf('Use of the boolean TRUE for the "checkDNS" option in %s is deprecated. Use Url::CHECK_DNS_TYPE_ANY instead.', Url::class), E_USER_DEPRECATED);
8686
}

0 commit comments

Comments
 (0)