Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bfd9c2c

Browse filesBrowse files
committed
Removed references for non existent validator constraints
1 parent a2d3653 commit bfd9c2c
Copy full SHA for bfd9c2c

File tree

1 file changed

+0
-3
lines changed
Filter options

1 file changed

+0
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Validator/ValidatorTypeGuesser.php
-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.