Skip to content

Commit 0fcd0af

Browse files
committed
minor #12750 [Hackday] - add trigger error for deprecated clases. (desarrolla2)
This PR was squashed before being merged into the 2.7 branch (closes #12750). Discussion ---------- [Hackday] - add trigger error for deprecated clases. | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | - | Fixed tickets | #12669 | License | MIT | Doc PR | - Commits ------- 48dd497 [Hackday] - add trigger error for deprecated clases.
2 parents ac22621 + da51705 commit 0fcd0af

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Constraints/Collection/Optional.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\Constraints\Collection;
1313

14+
trigger_error('Symfony\Component\Validator\Constraints\Collection\Optional was deprecated in version 2.3 and will be removed in 3.0. You should use Symfony\Component\Validator\Constraints\Optional instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Validator\Constraints\Optional as BaseOptional;
1517

1618
/**

Constraints/Collection/Required.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\Constraints\Collection;
1313

14+
trigger_error('Symfony\Component\Validator\Constraints\Collection\Required was deprecated in version 2.3 and will be removed in 3.0. You should use Symfony\Component\Validator\Constraints\Required instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Validator\Constraints\Required as BaseRequired;
1517

1618
/**

0 commit comments

Comments
 (0)