8000 minor #7091 A bracket was missed (hpatoio) · symfony/symfony-docs@a0cea04 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0cea04

Browse files
committed
minor #7091 A bracket was missed (hpatoio)
This PR was submitted for the 3.1 branch but it was merged into the 2.7 branch instead (closes #7091). Discussion ---------- A bracket was missed In the code example a bracket was missed. Do I have to send a PR for all branches or you ave a system to updated all affected branch automatically ? Commits ------- c4f8562 A bracket was missed
2 parents 3585bc2 + c4f8562 commit a0cea04

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

reference/forms/types/choice.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,19 @@ Grouping Options
135135

136136
You can easily "group" options in a select by passing a multi-dimensional choices array::
137137

138-
$builder->add('stockStatus', 'choice', [
139-
'choices' => [
140-
'Main Statuses' => [
138+
$builder->add('stockStatus', 'choice', array(
139+
'choices' => array(
140+
'Main Statuses' => array(
141141
'Yes' => 'stock_yes',
142142
'No' => 'stock_no',
143-
],
144-
'Out of Stock Statuses' => [
143+
),
144+
'Out of Stock Statuses' => array(
145145
'Backordered' => 'stock_backordered',
146146
'Discontinued' => 'stock_discontinued',
147-
]
148-
],
147+
),
148+
),
149149
'choices_as_values' => true,
150-
);
150+
));
151151

152152
.. image:: /_images/reference/form/choice-example4.png
153153
:align: center

0 commit comments

Comments
 (0)
0