[Validator] add deprecation log (#12674)
This commit is contained in:
parent
f8fb8a98b2
commit
0f7e303991
@ -52,7 +52,7 @@ class LegacyValidator extends RecursiveValidator implements LegacyValidatorInter
|
||||
return parent::validate($value, $constraints, $groups);
|
||||
}
|
||||
|
||||
trigger_error('ValidatorInterface::validate() was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
|
||||
trigger_error('Symfony\\Component\\Validator\\ValidatorInterface::validate() was deprecated in version 2.5 and will be removed in version 3.0. Please use Symfony\\Component\\Validator\\Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
|
||||
|
||||
$constraint = new Valid(array('traverse' => $traverse, 'deep' => $deep));
|
||||
|
||||
@ -61,7 +61,7 @@ class LegacyValidator extends RecursiveValidator implements LegacyValidatorInter
|
||||
|
||||
public function validateValue($value, $constraints, $groups = null)
|
||||
{
|
||||
trigger_error('ValidatorInterface::validateValue() was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
|
||||
trigger_error('Symfony\\Component\\Validator\\ValidatorInterface::validateValue() was deprecated in version 2.5 and will be removed in version 3.0. Please use Symfony\\Component\\Validator\\Validator\\ValidatorInterface::validate() instead.', E_USER_DEPRECATED);
|
||||
|
||||
return parent::validate($value, $constraints, $groups);
|
||||
}
|
||||
|
@ -11,8 +11,6 @@
|
||||
|
||||
namespace Symfony\Component\Validator;
|
||||
|
||||
trigger_error('ValidatorInterface was deprecated in version 2.5 and will be removed in version 3.0. Please use Validator\\ValidatorInterface instead.', E_USER_DEPRECATED);
|
||||
|
||||
/**
|
||||
* Validates values and graphs of objects and arrays.
|
||||
*
|
||||
|
Reference in New Issue
Block a user