8000 Removed references for non existent validator constraints · symfony/symfony@bfd9c2c · GitHub
[go: up one dir, main page]

Skip to content

Commit bfd9c2c

Browse files
committed
Removed references for non existent validator constraints
1 parent a2d3653 commit bfd9c2c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ public function guessTypeForConstraint(Constraint $constraint)
151151
case 'Symfony\Component\Validator\Constraints\Count':
152152
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CollectionType', array(), Guess::LOW_CONFIDENCE);
153153

154-
case 'Symfony\Component\Validator\Constraints\True':
155-
case 'Symfony\Component\Validator\Constraints\False':
156154
case 'Symfony\Component\Validator\Constraints\IsTrue':
157155
case 'Symfony\Component\Validator\Constraints\IsFalse':
158156
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CheckboxType', array(), Guess::MEDIUM_CONFIDENCE);
@@ -171,7 +169,6 @@ public function guessRequiredForConstraint(Constraint $constraint)
171169
switch (get_class($constraint)) {
172170
case 'Symfony\Component\Validator\Constraints\NotNull':
173171
case 'Symfony\Component\Validator\Constraints\NotBlank':
174-
case 'Symfony\Component\Validator\Constraints\True':
175172
case 'Symfony\Component\Validator\Constraints\IsTrue':
176173
return new ValueGuess(true, Guess::HIGH_CONFIDENCE);
177174
}

0 commit comments

Comments
 (0)
0