Skip to content

Commit

Permalink
minor #23636 [Form] Removed references for non existent validator con…
Browse files Browse the repository at this point in the history
…straints (Koc)

This PR was merged into the 3.2 branch.

Discussion
----------

[Form]  Removed references for non existent validator constraints

| Q             | A
| ------------- | ---
| Branch?       | 3.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | follow-up of #16024
| License       | MIT
| Doc PR        | -

<!--
- Bug fixes must be submitted against the lowest branch where they apply
  (lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the 3.4,
  legacy code removals go to the master branch.
- Please fill in this template according to the PR you're about to submit.
- Replace this comment by a description of what your PR is solving.
-->

Commits
-------

bfd9c2c Removed references for non existent validator constraints
  • Loading branch information
ogizanagi committed Jul 24, 2017
2 parents a2d3653 + bfd9c2c commit 945596b
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 945596b

Please sign in to comment.