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:
commit
bda0fe8f5d
@ -88,7 +88,7 @@ interface ExecutionContextInterface extends LegacyExecutionContextInterface
|
|||||||
* {
|
* {
|
||||||
* $validator = $this->context->getValidator();
|
* $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) {
|
* if (count($violations) > 0) {
|
||||||
* // ...
|
* // ...
|
||||||
|
Reference in New Issue
Block a user