Skip to content

Commit d82b7e2

Browse files
committed
docs: make PHPDoc more accurate
1 parent 55a6861 commit d82b7e2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

system/HTTP/ResponseTrait.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ public function redirect(string $uri, string $method = 'auto', ?int $code = null
543543
* @param string $expire Cookie expiration time in seconds
544544
* @param string $domain Cookie domain (e.g.: '.yourdomain.com')
545545
* @param string $path Cookie path (default: '/')
546-
* @param string $prefix Cookie name prefix
546+
* @param string $prefix Cookie name prefix ('': the default prefix)
547547
* @param bool $secure Whether to only transfer cookies via SSL
548548
* @param bool $httponly Whether only make the cookie accessible via HTTP (no javascript)
549549
* @param string|null $samesite
@@ -618,6 +618,9 @@ public function hasCookie(string $name, ?string $value = null, string $prefix =
618618
/**
619619
* Returns the cookie
620620
*
621+
* @param string $prefix Cookie prefix.
622+
* '': the default prefix
623+
*
621624
* @return Cookie|Cookie[]|null
622625
*/
623626
public function getCookie(?string $name = null, string $prefix = '')

system/Helpers/cookie_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @param string $expire The number of seconds until expiration
2929
* @param string $domain For site-wide cookie. Usually: .yourdomain.com
3030
* @param string $path The cookie path
31-
* @param string $prefix The cookie prefix
31+
* @param string $prefix The cookie prefix ('': the default prefix)
3232
* @param bool $secure True makes the cookie secure
3333
* @param bool $httpOnly True makes the cookie accessible via http(s) only (no javascript)
3434
* @param string|null $sameSite The cookie SameSite value

0 commit comments

Comments
 (0)