[Hackday] - add trigger error for deprecated clases.

This commit is contained in:
Daniel González Cerviño 2014-11-29 15:23:38 +01:00 committed by Fabien Potencier
parent d277c16a27
commit 48dd497514
2 changed files with 4 additions and 0 deletions

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Validator\Constraints\Collection;
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);
use Symfony\Component\Validator\Constraints\Optional as BaseOptional;
/**

View File

@ -11,6 +11,8 @@
namespace Symfony\Component\Validator\Constraints\Collection;
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);
use Symfony\Component\Validator\Constraints\Required as BaseRequired;
/**