We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$data = [ 'true' => true, 'false' => false ]; /* * GuzzleHttp\Psr7\build_query() */ var_dump(GuzzleHttp\Psr7\build_query($data)); // string(13) "true=1&false=" /* * \http_build_query() */ var_dump(\http_build_query($data)); // string(14) "true=1&false=0"
GuzzleHttp\Psr7\build_query() resolves false to '' but I think it should be 0 as well as \http_build_query().
GuzzleHttp\Psr7\build_query()
false
''
0
\http_build_query()
I'll file a PR if it's reasonable for you too.
The text was updated successfully, but these errors were encountered:
FYI this code is called by swagger-codegen. All code generated by swagger-codegen is broken currently.
Sorry, something went wrong.
true
Successfully merging a pull request may close this issue.
GuzzleHttp\Psr7\build_query()
resolvesfalse
to''
but I think it should be0
as well as\http_build_query()
.I'll file a PR if it's reasonable for you too.
The text was updated successfully, but these errors were encountered: