Skip to content

Commit bda0fe8

Browse files
committed
minor symfony#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 ------- b0253e5 Replace deprecated validateValue with validate
2 parents 34e55be + b0253e5 commit bda0fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Validator/Context/ExecutionContextInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function buildViolation($message, array $parameters = array());
8888
* {
8989
* $validator = $this->context->getValidator();
9090
*
91-
* $violations = $validator->validateValue($value, new Length(array('min' => 3)));
91+
* $violations = $validator->validate($value, new Length(array('min' => 3)));
9292
*
9393
* if (count($violations) > 0) {
9494
* // ...

0 commit comments

Comments
 (0)