Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added deprication note on Valid constraint validator for deep option.
  • Loading branch information
Balazs Csaba committed Nov 29, 2014
1 parent d277c16 commit 46f1eb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Validator/Constraints/Valid.php
Expand Up @@ -40,6 +40,10 @@ public function __construct($options = null)
));
}

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);
}
}

0 comments on commit 46f1eb0

Please sign in to comment.