Skip to content

Commit ae558f4

Browse files
Added the missing versionadded directive
1 parent e4eae25 commit ae558f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

serializer.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ to your class and choose which groups to use when serializing::
136136
.. tip::
137137

138138
The value of the ``groups`` key can be a single string, or an array of strings.
139+
140+
.. versionadded:: 4.2
141+
The option to pass a single string to ``groups`` was introduced in Symfony 4.2.
139142

140143
In addition to the ``@Groups`` annotation, the Serializer component also
141144
supports YAML or XML files. These files are automatically loaded when being

0 commit comments

Comments
 (0)