We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce07d1 commit dc3892eCopy full SHA for dc3892e
src/BooleanType.php
@@ -85,10 +85,10 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
85
};
86
87
$resolver->setDefaults(array(
88
- 'label_false' => null,
89
'label_true' => null,
90
- 'value_false' => 'no',
+ 'label_false' => null,
91
'value_true' => 'yes',
+ 'value_false' => 'no',
92
'widget' => 'choice',
93
));
94
@@ -105,6 +105,8 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
105
$resolver->setAllowedTypes(array(
106
'value_true' => array('string'),
107
'value_false' => array('string'),
108
+ 'label_true' => array('string'),
109
+ 'label_false' => array('string'),
110
111
112
$resolver->setAllowedValues(array(
0 commit comments