Skip to content

Commit f12de0e

Browse files
committed
remove MinCount and MaxCount contraints. It has been replaced by Count constraints.
1 parent 78a22d7 commit f12de0e

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
@@ -164,8 +164,7 @@ public function guessTypeForConstraint(Constraint $constraint)
164164
case 'Symfony\Component\Validator\Constraints\Range':
165165
return new TypeGuess('number', array(), Guess::LOW_CONFIDENCE);
166166

167-
case 'Symfony\Component\Validator\Constraints\MinCount':
168-
case 'Symfony\Component\Validator\Constraints\MaxCount':
167+
case 'Symfony\Component\Validator\Constraints\Count':
169168
return new TypeGuess('collection', array(), Guess::LOW_CONFIDENCE);
170169

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

0 commit comments

Comments
 (0)