Skip to content

Commit 3770586

Browse files
Henry Snoekfabpot
authored andcommitted
[Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method
1 parent 2815a67 commit 3770586

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Mapping/ClassMetadata.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ public function __construct($class)
133133
*/
134134
public function accept(ValidationVisitorInterface $visitor, $value, $group, $propertyPath, $propagatedGroup = null)
135135
{
136+
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);
137+
136138
if (null === $propagatedGroup && Constraint::DEFAULT_GROUP === $group
137139
&& ($this->hasGroupSequence() || $this->isGroupSequenceProvider())) {
138140
if ($this->hasGroupSequence()) {

0 commit comments

Comments
 (0)