Added deprication note on Valid constraint validator for deep option.

This commit is contained in:
Balazs Csaba 2014-11-29 15:41:23 +02:00
parent d277c16a27
commit 46f1eb06ff

View File

@ -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); parent::__construct($options);
} }
} }