Skip to content

Commit

Permalink
Removed references for non existent validator constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
Koc committed Jul 23, 2017
1 parent a2d3653 commit bfd9c2c
Showing 1 changed file with 0 additions and 3 deletions.
Expand Up @@ -151,8 +151,6 @@ public function guessTypeForConstraint(Constraint $constraint)
case 'Symfony\Component\Validator\Constraints\Count':
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CollectionType', array(), Guess::LOW_CONFIDENCE);

case 'Symfony\Component\Validator\Constraints\True':
case 'Symfony\Component\Validator\Constraints\False':
case 'Symfony\Component\Validator\Constraints\IsTrue':
case 'Symfony\Component\Validator\Constraints\IsFalse':
return new TypeGuess('Symfony\Component\Form\Extension\Core\Type\CheckboxType', array(), Guess::MEDIUM_CONFIDENCE);
Expand All @@ -171,7 +169,6 @@ public function guessRequiredForConstraint(Constraint $constraint)
switch (get_class($constraint)) {
case 'Symfony\Component\Validator\Constraints\NotNull':
case 'Symfony\Component\Validator\Constraints\NotBlank':
case 'Symfony\Component\Validator\Constraints\True':
case 'Symfony\Component\Validator\Constraints\IsTrue':
return new ValueGuess(true, Guess::HIGH_CONFIDENCE);
}
Expand Down

0 comments on commit bfd9c2c

Please sign in to comment.