Opened 6 years ago
Closed 6 years ago
#46859 closed defect (bug) (fixed)
Incorrect type docblock annotation for $expiresin wp-includes/class-wp-http-cookie.php
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
The variable $expires
in the class WP_HTTP_Cookie
defined in wp-includes/class-wp-http-cookie.php
is defined by the docblock type annotation to be of a string type. However, occasionally the value null
may be assigned. The attached patch fixes the docblock to also state that null
is allowed.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
patch to change type annotation in docblock from string to string|null