You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! It seems like the docs are wrong here. In Symfony 5.1, the InputBag was introduced to avoid having the array return type: #34363 (as that makes it quite easy to break applications by adding [] to the URL).
Symfony version(s) affected: 5.3.6
Description
According to the documentation here:
https://symfony.com/doc/current/components/http_foundation.html#accessing-request-data
$request->query->get() can return arrays, but PHPDoc in InputBag for method get() says
Possible Solution
In my assumption it should be save to add array to the return annotation?
If so, I'm happy to prepare a pull request.
The text was updated successfully, but these errors were encountered: