Skip to content

Commit ea93980

Browse files
committed
[symfony#3338] Correcting what happens when required is false
1 parent 72fa7b4 commit ea93980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/forms/types/options/empty_data.rst.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ choice is selected.
88

99
The true default value of this option depends on the field options:
1010

11-
* If ``data_class`` is set and ``required`` is ``true``, then ``null``;
12-
* If ``data_class`` is set and ``required`` is ``false``, then ``new $data_class()``;
11+
* If ``data_class`` is set and ``required`` is ``true``, then ``new $data_class()``;
12+
* If ``data_class`` is set and ``required`` is ``false``, then ``null``;
1313
* If ``data_class`` is not set and ``compound`` is ``true``, then ``array()``;
1414
* If ``data_class`` is not set and ``compound`` is ``false``, then ``null``.
1515

0 commit comments

Comments
 (0)