Skip to content

Commit

Permalink
[Hackday][2.7] Add a deprecation note about MetadataInterface's accep…
Browse files Browse the repository at this point in the history
…t() method
  • Loading branch information
Henry Snoek authored and fabpot committed Nov 30, 2014
1 parent e0913ff commit 171377d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Symfony/Component/Validator/Mapping/ClassMetadata.php
Expand Up @@ -133,6 +133,8 @@ public function __construct($class)
*/
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
{
trigger_error('The Symfony\Component\Validator\MetadataInterface::accept() method is deprecated since Symfony 2.5 and will be removed in 3.0.', E_USER_DEPRECATED);

if (null === $propagatedGroup && Constraint::DEFAULT_GROUP === $group
&& ($this->hasGroupSequence() || $this->isGroupSequenceProvider())) {
if ($this->hasGroupSequence()) {
Expand Down

0 comments on commit 171377d

Please sign in to comment.