Skip to content

Commit ac22621

Browse files
committed
minor #12850 [Validator] add deprecation log (#12674) (phramz)
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)
2 parents 166019a + cc1e094 commit ac22621

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Validator/LegacyValidator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function validate($value, $groups = null, $traverse = false, $deep = fals
5252
return parent::validate($value, $constraints, $groups);
5353
}
5454

55-
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);
55+
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);
5656

5757
$constraint = new Valid(array('traverse' => $traverse, 'deep' => $deep));
5858

@@ -61,7 +61,7 @@ public function validate($value, $groups = null, $traverse = false, $deep = fals
6161

6262
public function validateValue($value, $constraints, $groups = null)
6363
{
64-
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);
64+
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);
6565

6666
return parent::validate($value, $constraints, $groups);
6767
}

ValidatorInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\Validator;
1313

14-
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);
15-
1614
/**
1715
* Validates values and graphs of objects and arrays.
1816
*

0 commit comments

Comments
 (0)