Skip to content

Commit 4d43a7d

Browse files
committed
feature #5543 Add deprecation notice to "choice_list" option of ChoiceType (XitasoChris)
This PR was squashed before being merged into the 2.7 branch (closes #5543). Discussion ---------- Add deprecation notice to "choice_list" option of ChoiceType Per https://github.com/symfony/symfony/blob/2.8/UPGRADE-2.7.md the choice_list option of ChoiceType is deprecated as of Symfony 2.7. It is recommended to use choices or choice_loader, however the latter does not have a documentation entry yet. Commits ------- a4db275 Add deprecation notice to "choice_list" option of ChoiceType
2 parents e9a9368 + a4db275 commit 4d43a7d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

reference/forms/types/choice.rst

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ is the item value and the array value is the item's label::
102102
choice_list
103103
~~~~~~~~~~~
104104

105+
.. caution::
106+
107+
The ``choice_list`` option of ChoiceType was deprecated in Symfony 2.7.
108+
You should use ``choices`` or ``choice_loader`` now.
109+
105110
**type**: :class:`Symfony\\Component\\Form\\Extension\\Core\\ChoiceList\\ChoiceListInterface`
106111

107112
This is one way of specifying the options to be used for this field.

0 commit comments

Comments
 (0)