Skip to content

Commit af0255f

Browse files
ISSUE-66: Updated BooleanType for Symfony 2.8
1 parent 07d3fb7 commit af0255f

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

src/BooleanType.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -112,17 +112,7 @@ public function configureOptions(OptionsResolver $resolver)
112112
*/
113113
public function getParent()
114114
{
115-
return 'choice';
116-
}
117-
118-
/**
119-
* Returns the name of this type.
120-
*
121-
* @return string
122-
*/
123-
public function getName()
124-
{
125-
return 'boolean';
115+
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
126116
}
127117

128118
/**
@@ -131,6 +121,8 @@ public function getName()
131121
* @param string $text
132122
*
133123
* @return string
124+
*
125+
* @deprecated since 2.8, will be removed in 3.0
134126
*/
135127
public function humanize($text)
136128
{

0 commit comments

Comments
 (0)