Skip to content

Commit 583de40

Browse files
authored
Merge pull request #7355 from totoprayogo1916/mixed
docs: replace `mixed` in system/HTTP/IncomingRequest.php
2 parents 56bc931 + 8ce0e5b commit 583de40

2 files changed

Lines changed: 22 additions & 22 deletions

File tree

system/HTTP/IncomingRequest.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ public function getDefaultLocale(): string
572572
*
573573
* @param array|string|null $index
574574
* @param int|null $filter Filter constant
575-
* @param mixed $flags
575+
* @param array|int|null $flags
576576
*
577577
* @return array|bool|float|int|stdClass|string|null
578578
*/
@@ -707,7 +707,7 @@ public function getRawInput()
707707
* @param int|null $filter Filter Constant
708708
* @param array|int|null $flags Option
709709
*
710-
* @return mixed
710+
* @return array|bool|float|int|object|string|null
711711
*/
712712
public function getRawInputVar($index = null, ?int $filter = null, $flags = null)
713713
{
@@ -759,9 +759,9 @@ public function getRawInputVar($index = null, ?int $filter = null, $flags = null
759759
*
760760
* @param array|string|null $index Index for item to fetch from $_GET.
761761
* @param int|null $filter A filter name to apply.
762-
* @param mixed|null $flags
762+
* @param array|int|null $flags
763763
*
764-
* @return mixed
764+
* @return array|bool|float|int|object|string|null
765765
*/
766766
public function getGet($index = null, $filter = null, $flags = null)
767767
{
@@ -773,9 +773,9 @@ public function getGet($index = null, $filter = null, $flags = null)
773773
*
774774
* @param array|string|null $index Index for item to fetch from $_POST.
775775
* @param int|null $filter A filter name to apply
776-
* @param mixed $flags
776+
* @param array|int|null $flags
777777
*
778-
* @return mixed
778+
* @return array|bool|float|int|object|string|null
779779
*/
780780
public function getPost($index = null, $filter = null, $flags = null)
781781
{
@@ -787,9 +787,9 @@ public function getPost($index = null, $filter = null, $flags = null)
787787
*
788788
* @param array|string|null $index Index for item to fetch from $_POST or $_GET
789789
* @param int|null $filter A filter name to apply
790-
* @param mixed $flags
790+
* @param array|int|null $flags
791791
*
792-
* @return mixed
792+
* @return array|bool|float|int|object|string|null
793793
*/
794794
public function getPostGet($index = null, $filter = null, $flags = null)
795795
{
@@ -809,9 +809,9 @@ public function getPostGet($index = null, $filter = null, $flags = null)
809809
*
810810
* @param array|string|null $index Index for item to be fetched from $_GET or $_POST
811811
* @param int|null $filter A filter name to apply
812-
* @param mixed $flags
812+
* @param array|int|null $flags
813813
*
814-
* @return mixed
814+
* @return array|bool|float|int|object|string|null
815815
*/
816816
public function getGetPost($index = null, $filter = null, $flags = null)
817817
{
@@ -831,9 +831,9 @@ public function getGetPost($index = null, $filter = null, $flags = null)
831831
*
832832
* @param array|string|null $index Index for item to be fetched from $_COOKIE
833833
* @param int|null $filter A filter name to be applied
834-
* @param mixed $flags
834+
* @param array|int|null $flags
835835
*
836-
* @return mixed
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: 10 additions & 10 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: mixed|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: mixed|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: mixed|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: mixed|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: mixed|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
@@ -418,13 +418,13 @@ The methods provided by the parent classes that are available are:
418418

419419
.. php:method:: getCookie([$index = null[, $filter = null[, $flags = null]]])
420420
421-
:param mixed $index: COOKIE name
421+
:param array|string|null $index: COOKIE name
422422
:param int $filter: The type of filter to apply. A list of filters can be
423423
found `here <https://www.php.net/manual/en/filter.filters.php>`__.
424424
:param int $flags: Flags to apply. A list of flags can be found
425425
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
426426
:returns: ``$_COOKIE`` if no parameters supplied, otherwise the COOKIE value if found or null if not
427-
:rtype: mixed
427+
:rtype: array|bool|float|int|object|string|null
428428

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

@@ -440,13 +440,13 @@ The methods provided by the parent classes that are available are:
440440

441441
.. php:method:: getServer([$index = null[, $filter = null[, $flags = null]]])
442442
443-
:param mixed $index: Value name
443+
:param array|string|null $index: Value name
444444
:param int $filter: The type of filter to apply. A list of filters can be
445445
found `here <https://www.php.net/manual/en/filter.filters.php>`__.
446446
:param int $flags: Flags to apply. A list of flags can be found
447447
`here <https://www.php.net/manual/en/filter.filters.flags.php>`__.
448448
:returns: ``$_SERVER`` item value if found, null if not
449-
:rtype: mixed
449+
:rtype: array|bool|float|int|object|string|null
450450

451451
This method is identical to the ``getPost()``, ``getGet()`` and ``getCookie()``
452452
methods, only it fetches getServer data (``$_SERVER``):
@@ -463,7 +463,7 @@ The methods provided by the parent classes that are available are:
463463
:param int $filter: The type of filter to apply. A list of filters can be
464464
found `here <https://www.php.net/manual/en/filter.filters.php>`__.
465465
:returns: The User Agent string, as found in the SERVER data, or null if not found.
466-
:rtype: mixed
466+
:rtype: CodeIgniter\\HTTP\\UserAgent
467467

468468
This method returns the User Agent string from the SERVER data:
469469

0 commit comments

Comments
 (0)