Skip to content

Commit cc1e094

Browse files
committed
[Validator] add deprecation log (#12674)
1 parent 2df7c11 commit cc1e094

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)