Skip to content

Commit da51705

Browse files
desarrolla2fabpot
authored andcommitted
[Hackday] - add trigger error for deprecated clases.
1 parent 5a58305 commit da51705

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)