We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b386600 commit 79bc283Copy full SHA for 79bc283
reference/constraints/Choice.rst
@@ -143,6 +143,9 @@ form element.
143
}
144
145
146
+.. versionadded:: 3.2
147
+ As of Symfony 3.2 the callback no longer needs to be static.
148
+
149
You can pass the name of this method to the `callback`_ option of the ``Choice``
150
constraint.
151
@@ -208,7 +211,7 @@ constraint.
208
211
209
212
210
213
-If the static callback is stored in a different class, for example ``Util``,
214
+If the callback is stored in a different class and is static, for example ``Util``,
215
you can pass the class name and the method as an array.
216
217
.. configuration-block::
0 commit comments