Skip to content

Commit d175672

Browse files
committed
-
1 parent 1db6ba2 commit d175672

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/http_foundation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ doesn't support returning arrays, so you need to use the following code::
168168

169169
// the query string is '?foo[bar]=baz'
170170

171+
// don't use $request->query->get('foo'); use the following instead:
171172
$request->query->all()['foo'];
172173
// returns ['bar' => 'baz']
173174

@@ -177,10 +178,9 @@ doesn't support returning arrays, so you need to use the following code::
177178
$request->query->all()['foo']['bar'];
178179
// returns 'baz'
179180

180-
.. versionadded:: 5.1
181+
.. deprecated:: 5.1
181182

182-
The feature that removed array support in ``get()`` was introduced in
183-
Symfony 5.1.
183+
The array support in ``get()`` method was deprecated in Symfony 5.1.
184184

185185
.. _component-foundation-attributes:
186186

0 commit comments

Comments
 (0)