Skip to content
Permalink
Browse files

Docs: Correct `@type` annotation for `WP_HTTP_Cookie::$expires`.

Props diddledan.
Fixes #46859.

git-svn-id: https://develop.svn.wordpress.org/trunk@45748 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information...
SergeyBiryukov committed Aug 5, 2019
1 parent 62f6907 commit 89058d3c1c686874d8bd4cd9453e4656dff153cf
Showing with 12 additions and 12 deletions.
  1. +12 −12 src/wp-includes/class-wp-http-cookie.php
@@ -37,10 +37,10 @@ class WP_Http_Cookie {
public $value;
/**
* When the cookie expires.
* When the cookie expires. Unix timestamp or formatted date.
*
* @since 2.8.0
* @var string
* @var string|int|null
*/
public $expires;
@@ -80,13 +80,13 @@ class WP_Http_Cookie {
* @param string|array $data {
* Raw cookie data as header string or data array.
*
* @type string $name Cookie name.
* @type mixed $value Value. Should NOT already be urlencoded.
* @type string|int $expires Optional. Unix timestamp or formatted date. Default null.
* @type string $path Optional. Path. Default '/'.
* @type string $domain Optional. Domain. Default host of parsed $requested_url.
* @type int $port Optional. Port. Default null.
* @type bool $host_only Optional. host-only storage flag. Default true.
* @type string $name Cookie name.
* @type mixed $value Value. Should NOT already be urlencoded.
* @type string|int|null $expires Optional. Unix timestamp or formatted date. Default null.
* @type string $path Optional. Path. Default '/'.
* @type string $domain Optional. Domain. Default host of parsed $requested_url.
* @type int $port Optional. Port. Default null.
* @type bool $host_only Optional. host-only storage flag. Default true.
* }
* @param string $requested_url The URL which the cookie was set on, used for default $domain
* and $port values.
@@ -246,9 +246,9 @@ public function getFullHeader() { // phpcs:ignore WordPress.NamingConventions.Va
* @return array {
* List of attributes.
*
* @type string $expires When the cookie expires.
* @type string $path Cookie URL path.
* @type string $domain Cookie domain.
* @type string|int|null $expires When the cookie expires. Unix timestamp or formatted date.
* @type string $path Cookie URL path.
* @type string $domain Cookie domain.
* }
*/
public function get_attributes() {

0 comments on commit 89058d3

Please sign in to comment.
You can’t perform that action at this time.