8000 minor #23636 [Form] Removed references for non existent validator co… · symfony/symfony@945596b · GitHub
[go: up one dir, main page]

Skip to content

Commit 945596b

Browse files
committed
minor #23636 [Form] Removed references for non existent validator constraints (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
2 parents a2d3653 + bfd9c2c commit 945596b

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