Skip to content
New issue

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

[10.x] Mark Request JSON data to be InputBag in docblocks #48085

Merged
merged 1 commit into from
Aug 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
/**
* The decoded JSON content for the request.
*
* @var \Symfony\Component\HttpFoundation\ParameterBag|null
* @var \Symfony\Component\HttpFoundation\InputBag|null
*/
protected $json;

Expand Down Expand Up @@ -398,7 +398,7 @@ public function get(string $key, mixed $default = null): mixed
*
* @param string|null $key
* @param mixed $default
* @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
* @return \Symfony\Component\HttpFoundation\InputBag|mixed
*/
public function json($key = null, $default = null)
{
Expand All @@ -416,7 +416,7 @@ public function json($key = null, $default = null)
/**
* Get the input source for the request.
*
* @return \Symfony\Component\HttpFoundation\ParameterBag
* @return \Symfony\Component\HttpFoundation\InputBag
*/
protected function getInputSource()
{
Expand Down Expand Up @@ -646,7 +646,7 @@ public function fingerprint()
/**
* Set the JSON payload for the request.
*
* @param \Symfony\Component\HttpFoundation\ParameterBag $json
* @param \Symfony\Component\HttpFoundation\InputBag $json
* @return $this
*/
public function setJson($json)
Expand Down