Skip to content

Commit 6e3362c

Browse files
committed
docs: add missing Cookie to :param
1 parent 72e7d1c commit 6e3362c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/helpers/cookie_helper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following functions are available:
2323

2424
.. php:function:: set_cookie($name[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = false[, $httpOnly = false[, $sameSite = '']]]]]]]])
2525
26-
:param mixed $name: Cookie name *or* associative array of all of the parameters available to this function
26+
:param array|Cookie|string $name: Cookie name *or* associative array of all of the parameters available to this function *or* an instance of ``CodeIgniter\Cookie\Cookie``
2727
:param string $value: Cookie value
2828
:param int $expire: Number of seconds until expiration. If set to ``0`` the cookie will only last as long as the browser is open
2929
:param string $domain: Cookie domain (usually: .yourdomain.com)

user_guide_src/source/outgoing/response.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ The methods provided by the parent class that are available are:
445445

446446
.. php:method:: setCookie($name = ''[, $value = ''[, $expire = ''[, $domain = ''[, $path = '/'[, $prefix = ''[, $secure = false[, $httponly = false[, $samesite = null]]]]]]]])
447447
448-
:param array|Cookie|string $name: Cookie name or an array of parameters or an instance of ``CodeIgniter\Cookie\Cookie``
448+
:param array|Cookie|string $name: Cookie name *or* associative array of all of the parameters available to this method *or* an instance of ``CodeIgniter\Cookie\Cookie``
449449
:param string $value: Cookie value
450450
:param int $expire: Cookie expiration time in seconds. If set to ``0`` the cookie will only last as long as the browser is open
451451
:param string $domain: Cookie domain

0 commit comments

Comments
 (0)