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
sagikazarmark
changed the title
[Feature request] Allow nested query parameters to be parsed with build_query
Allow nested query parameters to be parsed with build_query
Sep 28, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 2 weeks if no further activity occurs. Thank you for your contributions.
Actual Behavior
Tyring to build a query string with nested array's fails.
rawurlencode() expects parameter 1 to be string, array given (with encoding on)
without encoding
Array to string conversion
Expected Behavior
I would expect the that the trying to parse a nested array to build_query actually builds the query.
The expected query string should be something like the fallowing (not escaped):
filters[errors.status][][type]=eq&filters[errors.status][][value]=new&filters[error.assigned_to][][type]=ne&filters[error.assigned_to][][value]=12345&auth_token=xxx
Steps to Reproduce
Pass in an array to params array that looks something like the fallowing.
$params parameter
Possible Solutions
Use recoursion to build a query like this. But i don't have any implemmentation or pr that i can share just yet.
The text was updated successfully, but these errors were encountered: