Skip to content

Commit 2e45bde

Browse files
committed
minor #12738 [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method (snoek09)
This PR was squashed before being merged into the 2.7 branch (closes #12738). Discussion ---------- [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #12676 | License | MIT Commits ------- 171377d [Hackday][2.7] Add a deprecation note about MetadataInterface's accept() method
2 parents 53aad1d + 3770586 commit 2e45bde

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)