File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Symfony/Component/Validator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use Symfony\Component\Validator\Constraints\Length;
18
18
19
19
$validator = Validation::createValidator();
20
20
21
- $violations = $validator->validateValue ('Bernhard', new Length(array('min' => 10)));
21
+ $violations = $validator->validate ('Bernhard', new Length(array('min' => 10)));
22
22
```
23
23
24
24
This validation will fail because the given string is shorter than ten
@@ -46,7 +46,7 @@ $constraint = new Assert\Collection(array(
46
46
'password' => new Assert\Length(array('min' => 60)),
47
47
));
48
48
49
- $violations = $validator->validateValue ($input, $constraint);
49
+ $violations = $validator->validate ($input, $constraint);
50
50
```
51
51
52
52
Again, the validator returns the list of violations.
You can’t perform that action at this time.
0 commit comments