You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Constraints/ChoiceValidator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ public function validate($value, Constraint $constraint)
59
59
}
60
60
61
61
if (true !== $constraint->strict) {
62
-
@trigger_error('Not setting the strict option of the Choice constraint to true is deprecated since Symfony 3.4 and will throw an exception in 4.0.', E_USER_DEPRECATED);
62
+
@trigger_error('Not setting the strict option of the Choice constraint to true is deprecated since Symfony 3.4 and will throw an exception in 4.0.', \E_USER_DEPRECATED);
Copy file name to clipboardExpand all lines: Constraints/UrlValidator.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ public function validate($value, Constraint $constraint)
76
76
// backwards compatibility
77
77
if (true === $constraint->checkDNS) {
78
78
$constraint->checkDNS = Url::CHECK_DNS_TYPE_ANY;
79
-
@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);
79
+
@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);
80
80
}
81
81
82
82
if (!\in_array($constraint->checkDNS, [
@@ -96,7 +96,7 @@ public function validate($value, Constraint $constraint)
96
96
thrownewInvalidOptionsException(sprintf('Invalid value for option "checkDNS" in constraint "%s".', \get_class($constraint)), ['checkDNS']);
97
97
}
98
98
99
-
$host = parse_url($value, PHP_URL_HOST);
99
+
$host = parse_url($value, \PHP_URL_HOST);
100
100
101
101
if (!\is_string($host) || !checkdnsrr($host, $constraint->checkDNS)) {
0 commit comments