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
When the $request->request come from JSON, the resulting associative array from $request->request->all() can have keys with null values.
$request->request
$request->request->all()
null
#[Route(path: '/my-test', methods: ['POST'])] public function myTest(Request $request): void { var_dump($request->request->all()); }
{ "foo": "bar", "something": null }
array(2) { ["foo"]=> string(3) "bar" ["something"]=> NULL }
I think null type should be listed in InputBagDynamicReturnTypeExtension::getAllTypeFromMethodCall()
InputBagDynamicReturnTypeExtension::getAllTypeFromMethodCall()
The text was updated successfully, but these errors were encountered:
$request->request never comes from JSON in Symfony.
Parsing a JSON payload is only done in Request::getPayload()
Request::getPayload()
Sorry, something went wrong.
No branches or pull requests
When the
$request->request
come from JSON, the resulting associative array from$request->request->all()
can have keys withnull
values.I think
null
type should be listed inInputBagDynamicReturnTypeExtension::getAllTypeFromMethodCall()
The text was updated successfully, but these errors were encountered: