This PR was merged into the 2.7 branch.
Discussion
----------
[Validator] add deprecation log (#12674)
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | yes
| Tests pass? | yes
| Fixed tickets | #12674
| License | MIT
| Doc PR |
... follows #12730
Commits
-------
0f7e303
[Validator] add deprecation log (#12674)
This commit is contained in:
commit
c91d72a039
@ -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