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
@@ -49,11 +57,19 @@ class Email extends Constraint
49
57
);
50
58
51
59
public$message = 'This value is not a valid email address.';
60
+
61
+
/**
62
+
* @deprecated since Symfony 4.2.
63
+
*/
52
64
public$checkMX = false;
65
+
66
+
/**
67
+
* @deprecated since Symfony 4.2.
68
+
*/
53
69
public$checkHost = false;
54
70
55
71
/**
56
-
* @deprecated since Symfony 4.1. Set mode to "strict" instead.
72
+
* @deprecated since Symfony 4.1, set mode to "strict" instead.
57
73
*/
58
74
public$strict;
59
75
public$mode;
@@ -64,6 +80,14 @@ public function __construct($options = null)
64
80
@trigger_error(sprintf('The "strict" property is deprecated since Symfony 4.1. Use "mode"=>"%s" instead.', self::VALIDATION_MODE_STRICT), E_USER_DEPRECATED);
65
81
}
66
82
83
+
if (\is_array($options) && array_key_exists('checkMX', $options)) {
84
+
@trigger_error('The "checkMX" property is deprecated since Symfony 4.2.', E_USER_DEPRECATED);
85
+
}
86
+
87
+
if (\is_array($options) && array_key_exists('checkHost', $options)) {
88
+
@trigger_error('The "checkHost" property is deprecated since Symfony 4.2.', E_USER_DEPRECATED);
89
+
}
90
+
67
91
if (\is_array($options) && array_key_exists('mode', $options) && !\in_array($options['mode'], self::$validationModes, true)) {
68
92
thrownew \InvalidArgumentException('The "mode" parameter value is not valid.');
0 commit comments