Skip to content

Commit 8ce0e5b

Browse files
Apply suggestions from @kenjis
Co-authored-by: kenjis <kenji.uui@gmail.com>
1 parent d239b2a commit 8ce0e5b

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

system/HTTP/IncomingRequest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ public function getRawInputVar($index = null, ?int $filter = null, $flags = null
761761
* @param int|null $filter A filter name to apply.
762762
* @param array|int|null $flags
763763
*
764-
* @return array|bool|string|null
764+
* @return array|bool|float|int|object|string|null
765765
*/
766766
public function getGet($index = null, $filter = null, $flags = null)
767767
{
@@ -775,7 +775,7 @@ public function getGet($index = null, $filter = null, $flags = null)
775775
* @param int|null $filter A filter name to apply
776776
* @param array|int|null $flags
777777
*
778-
* @return array|bool|string|null
778+
* @return array|bool|float|int|object|string|null
779779
*/
780780
public function getPost($index = null, $filter = null, $flags = null)
781781
{
@@ -789,7 +789,7 @@ public function getPost($index = null, $filter = null, $flags = null)
789789
* @param int|null $filter A filter name to apply
790790
* @param array|int|null $flags
791791
*
792-
* @return array|bool|string|null
792+
* @return array|bool|float|int|object|string|null
793793
*/
794794
public function getPostGet($index = null, $filter = null, $flags = null)
795795
{
@@ -811,7 +811,7 @@ public function getPostGet($index = null, $filter = null, $flags = null)
811811
* @param int|null $filter A filter name to apply
812812
* @param array|int|null $flags
813813
*
814-
* @return array|bool|string|null
814+
* @return array|bool|float|int|object|string|null
815815
*/
816816
public function getGetPost($index = null, $filter = null, $flags = null)
817817
{
@@ -833,7 +833,7 @@ public function getGetPost($index = null, $filter = null, $flags = null)
833833
* @param int|null $filter A filter name to be applied
834834
* @param array|int|null $flags
835835
*
836-
* @return array|bool|string|null
836+
* @return array|bool|float|int|object|string|null
837837
*/
838838
public function getCookie($index = null, $filter = null, $flags = null)
839839
{

user_guide_src/source/incoming/incomingrequest.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ The methods provided by the parent classes that are available are:
321321
:param int $flags: Flags to apply. A list of flags can be found
322322
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
323323
:returns: ``$_REQUEST`` if no parameters supplied, otherwise the REQUEST value if found, or null if not
324-
:rtype: array|bool|float|int|stdClass|string|null
324+
:rtype: array|bool|float|int|object|string|null
325325

326326
The first parameter will contain the name of the REQUEST item you are looking for:
327327

@@ -360,7 +360,7 @@ The methods provided by the parent classes that are available are:
360360
:param int $flags: Flags to apply. A list of flags can be found
361361
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
362362
:returns: ``$_GET`` if no parameters supplied, otherwise the GET value if found, or null if not
363-
:rtype: array|bool|string|null
363+
:rtype: array|bool|float|int|object|string|null
364364

365365
This method is identical to ``getVar()``, only it fetches GET data.
366366

@@ -372,7 +372,7 @@ The methods provided by the parent classes that are available are:
372372
:param int $flags: Flags to apply. A list of flags can be found
373373
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
374374
:returns: ``$_POST`` if no parameters supplied, otherwise the POST value if found, or null if not
375-
:rtype: array|bool|string|null
375+
:rtype: array|bool|float|int|object|string|null
376376

377377
This method is identical to ``getVar()``, only it fetches POST data.
378378

@@ -385,7 +385,7 @@ The methods provided by the parent classes that are available are:
385385
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
386386
:returns: ``$_POST`` and ``$_GET`` combined if no parameters specified (prefer POST value on conflict),
387387
otherwise looks for POST value, if nothing found looks for GET value, if no value found returns null
388-
:rtype: array|bool|string|null
388+
:rtype: array|bool|float|int|object|string|null
389389

390390
This method works pretty much the same way as ``getPost()`` and ``getGet()``, only combined.
391391
It will search through both POST and GET streams for data, looking first in POST, and
@@ -405,7 +405,7 @@ The methods provided by the parent classes that are available are:
405405
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
406406
:returns: ``$_GET`` and ``$_POST`` combined if no parameters specified (prefer GET value on conflict),
407407
otherwise looks for GET value, if nothing found looks for POST value, if no value found returns null
408-
:rtype: array|bool|string|null
408+
:rtype: array|bool|float|int|object|string|null
409409

410410
This method works pretty much the same way as ``getPost()`` and ``getGet()``, only combined.
411411
It will search through both GET and POST streams for data, looking first in GET, and
@@ -425,7 +425,7 @@ The methods provided by the parent classes that are available are:
425425
:param int $flags: Flags to apply. A list of flags can be found
426426
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
427427
:returns: ``$_COOKIE`` if no parameters supplied, otherwise the COOKIE value if found or null if not
428-
:rtype: array|bool|string|null
428+
:rtype: array|bool|float|int|object|string|null
429429

430430
This method is identical to ``getPost()`` and ``getGet()``, only it fetches cookie data:
431431

@@ -448,7 +448,7 @@ The methods provided by the parent classes that are available are:
448448
:param int $flags: Flags to apply. A list of flags can be found
449449
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
450450
:returns: ``$_SERVER`` item value if found, null if not
451-
:rtype: array|bool|string|null
451+
:rtype: array|bool|float|int|object|string|null
452452

453453
This method is identical to the ``getPost()``, ``getGet()`` and ``getCookie()``
454454
methods, only it fetches getServer data (``$_SERVER``):

0 commit comments

Comments
 (0)