Skip to content

Commit dc3892e

Browse files
Added allowed types for labels
1 parent 7ce07d1 commit dc3892e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/BooleanType.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
8585
};
8686

8787
$resolver->setDefaults(array(
88-
'label_false' => null,
8988
'label_true' => null,
90-
'value_false' => 'no',
89+
'label_false' => null,
9190
'value_true' => 'yes',
91+
'value_false' => 'no',
9292
'widget' => 'choice',
9393
));
9494

@@ -105,6 +105,8 @@ public function setDefaultOptions(OptionsResolverInterface $resolver)
105105
$resolver->setAllowedTypes(array(
106106
'value_true' => array('string'),
107107
'value_false' => array('string'),
108+
'label_true' => array('string'),
109+
'label_false' => array('string'),
108110
));
109111

110112
$resolver->setAllowedValues(array(

0 commit comments

Comments
 (0)