Opened 5 years ago
Closed 5 years ago
#46860 closed defect (bug) (fixed)
Incorrect type docblock annotation for some variables in wp-includes/class-wp-http-curl.php
Reported by: | diddledani | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.3 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
Some variables in wp-includes/class-wp-http-curl.php
include incorrect type definitions in their docblocks:
$max_body_length
defined asint
can sometimes containfalse
.$stream_handle
defined asresource
can also sometimes containfalse
.
Both of these are fixed in the attached patch by adding false
as an additional accepted type.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
patch to change type annotation in docblock to also include false