Skip to content

Commit b515661

Browse files
committed
[#14325] Moved contents out of versionadded directive
1 parent 5a1d507 commit b515661

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/http_foundation.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,14 @@ Finally, the raw data sent with the request body can be accessed using
191191
For instance, this may be useful to process a XML string sent to the
192192
application by a remote service using the HTTP POST method.
193193

194-
.. versionadded:: 5.2
194+
If the request body is a JSON string, it can be accessed using
195+
:method:`Symfony\\Component\\HttpFoundation\\Request::toArray`::
196+
197+
$data = $request->toArray();
195198

196-
If the request body is a JSON string, it can be accessed using
197-
:method:`Symfony\\Component\\HttpFoundation\\Request::toArray`::
199+
.. versionadded:: 5.2
198200

199-
$data = $request->toArray();
201+
The ``toArray()`` method was introduced in Symfony 5.2.
200202

201203
Identifying a Request
202204
~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)