Skip to content

Commit 2a161dd

Browse files
authored
Mark Request JSON data to be InputBag in docblocks (#48085)
1 parent 294661d commit 2a161dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Illuminate/Http/Request.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Request extends SymfonyRequest implements Arrayable, ArrayAccess
3131
/**
3232
* The decoded JSON content for the request.
3333
*
34-
* @var \Symfony\Component\HttpFoundation\ParameterBag|null
34+
* @var \Symfony\Component\HttpFoundation\InputBag|null
3535
*/
3636
protected $json;
3737

@@ -398,7 +398,7 @@ public function get(string $key, mixed $default = null): mixed
398398
*
399399
* @param string|null $key
400400
* @param mixed $default
401-
* @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
401+
* @return \Symfony\Component\HttpFoundation\InputBag|mixed
402402
*/
403403
public function json($key = null, $default = null)
404404
{
@@ -416,7 +416,7 @@ public function json($key = null, $default = null)
416416
/**
417417
* Get the input source for the request.
418418
*
419-
* @return \Symfony\Component\HttpFoundation\ParameterBag
419+
* @return \Symfony\Component\HttpFoundation\InputBag
420420
*/
421421
protected function getInputSource()
422422
{
@@ -646,7 +646,7 @@ public function fingerprint()
646646
/**
647647
* Set the JSON payload for the request.
648648
*
649-
* @param \Symfony\Component\HttpFoundation\ParameterBag $json
649+
* @param \Symfony\Component\HttpFoundation\InputBag $json
650650
* @return $this
651651
*/
652652
public function setJson($json)

0 commit comments

Comments
 (0)