minor #28739 [Validator][minor] Fixed method in phpDoc (vudaltsov)

This PR was merged into the 2.8 branch.

Discussion
----------

[Validator][minor] Fixed method in phpDoc

| Q             | A
| ------------- | ---
| Branch?       | >= 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

`ValidatorInterface` doesn't have a `validateValue` method, `validate` should be used.

Commits
-------

b0253e58ea Replace deprecated validateValue with validate
This commit is contained in:
Fabien Potencier 2018-10-06 15:13:19 +02:00
commit bda0fe8f5d
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ interface ExecutionContextInterface extends LegacyExecutionContextInterface
* {
* $validator = $this->context->getValidator();
*
* $violations = $validator->validateValue($value, new Length(array('min' => 3)));
* $violations = $validator->validate($value, new Length(array('min' => 3)));
*
* if (count($violations) > 0) {
* // ...