Skip to content

Commit 6f801dc

Browse files
committed
minor #12763 [Validator] [Deprecated] Add a deprecation note about ElementMetadata (davidromani)
This PR was merged into the 2.7 branch. Discussion ---------- [Validator] [Deprecated] Add a deprecation note about ElementMetadata | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #12682 | License | MIT | Doc PR | Commits ------- 21c32b5 add trigger message
2 parents 4c7c0f3 + 5174426 commit 6f801dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Mapping/ElementMetadata.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\Validator\Mapping;
1313

14+
trigger_error('The "Symfony\Component\Validator\Mapping\ElementMetadata" class was deprecated in version 2.5 and will be removed in 3.0. Use "Symfony\Component\Validator\Mapping\GenericMetadata" instead.', E_USER_DEPRECATED);
15+
1416
/**
1517
* Contains the metadata of a structural element.
1618
*

0 commit comments

Comments
 (0)