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
In the config file, the documentation for filter_fields_parameter says:
The package can automatically filter the fields of transformed data from a query string parameter configured below. The technique is also known as sparse fieldsets. Set it to null to disable it.
However, when setting it to null I started getting Array to string conversion errors when I sent any query parameters.
I've set a xdebug breakpoint after the fieldsets and relations are parsed, and apparently sending null as the key returns the whole request input, as opposed to what I assume was the intended effect of an empty array.
Here is a screenshot of the debugger. What you see in the $fieldsets array is essentially the whole parsed query string:
The text was updated successfully, but these errors were encountered:
Responder version: 3.0.5
Laravel version: v5.5.45
In the config file, the documentation for
filter_fields_parameter
says:However, when setting it to null I started getting
Array to string conversion
errors when I sent any query parameters.I think the cause is here:
I've set a xdebug breakpoint after the fieldsets and relations are parsed, and apparently sending
null
as the key returns the whole request input, as opposed to what I assume was the intended effect of an empty array.Here is a screenshot of the debugger. What you see in the
$fieldsets
array is essentially the whole parsed query string:The text was updated successfully, but these errors were encountered: