Skip to content

Commit 56de623

Browse files
committed
minor #7775 #7311 choice_value callback argument can be null (Michael Lenahan, javiereguiluz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #7775). Discussion ---------- #7311 choice_value callback argument can be null This is my first contribution to Symfony. Thank you @Deltachaos for your help today at the Hackday in Cologne. Commits ------- bf604e5 Fixed a syntax issue da1bbb2 Use backticks c274800 #7311 choice_value callback argument can be null
2 parents 671a124 + bf604e5 commit 56de623

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ configure the value that will be sent in the API request).
1414
This can be a callable or a property path. See `choice_label`_ for similar usage.
1515
If ``null`` is used, an incrementing integer is used as the name.
1616
17+
If you are using a callable to populate ``choice_value``, you need to check
18+
for the case that the value of the field may be ``null``.
19+
1720
.. caution::
1821
1922
In Symfony 2.7, there was a small backwards-compatibility break with how the

0 commit comments

Comments
 (0)