Skip to content

Commit fc5b9fa

Browse files
committed
Merge branch '2.2' into 2.3
* 2.2: remove MinCount and MaxCount contraints. It has been replaced by Count constraints.
2 parents 04cd7a3 + f12de0e commit fc5b9fa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Extension/Validator/ValidatorTypeGuesser.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,7 @@ public function guessTypeForConstraint(Constraint $constraint)
156156
case 'Symfony\Component\Validator\Constraints\Range':
157157
return new TypeGuess('number', array(), Guess::LOW_CONFIDENCE);
158158

159-
case 'Symfony\Component\Validator\Constraints\MinCount':
160-
case 'Symfony\Component\Validator\Constraints\MaxCount':
159+
case 'Symfony\Component\Validator\Constraints\Count':
161160
return new TypeGuess('collection', array(), Guess::LOW_CONFIDENCE);
162161

163162
case 'Symfony\Component\Validator\Constraints\True':

0 commit comments

Comments
 (0)