Skip to content

Commit 472821c

Browse files
committed
Added the missing versionadded directive
1 parent cab06a1 commit 472821c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/serializer.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,10 @@ These are the options available:
10921092
Handling Constructor Arguments
10931093
------------------------------
10941094

1095-
If the constructor of a class defines arguments, as usually happens with
1095+
.. versionadded:: 4.1
1096+
The ``default_constructor_arguments`` option was introduced in Symfony 4.1.
1097+
1098+
If the class constructor defines arguments, as usually happens with
10961099
`Value Objects`_, the serializer won't be able to create the object if some
10971100
arguments are missing. In those cases, use the ``default_constructor_arguments``
10981101
context option::

0 commit comments

Comments
 (0)