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 a0cea04

Browse filesBrowse 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
Copy full SHA for a0cea04

File tree

Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-8
lines changed

‎reference/forms/types/choice.rst

Copy file name to clipboardExpand all lines: reference/forms/types/choice.rst
+8-8Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.