Added deprication note on Valid constraint validator for deep option.
This commit is contained in:
parent
d277c16a27
commit
46f1eb06ff
@ -40,6 +40,10 @@ class Valid extends Constraint
|
||||
));
|
||||
}
|
||||
|
||||
if (is_array($options) && array_key_exists('deep', $options)) {
|
||||
trigger_error('The "deep" option for the Valid constraint is deprecated since 2.5 and will be removed in 3.0. When traversing arrays, nested arrays are always traversed. When traversing nested objects, their traversal strategy is used.', E_USER_DEPRECATED);
|
||||
}
|
||||
|
||||
parent::__construct($options);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user