[wp-trac] [WordPress Trac] #46860: Incorrect type docblock annotation for some variables in wp-includes/class-wp-http-curl.php

WordPress Trac noreply at wordpress.org
Tue Apr 9 15:17:04 UTC 2019


#46860: Incorrect type docblock annotation for some variables in wp-includes/class-
wp-http-curl.php
--------------------------+-----------------------------
 Reporter:  diddledan     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:  has-patch
  Focuses:                |
--------------------------+-----------------------------
 Some variables in `wp-includes/class-wp-http-curl.php` include incorrect
 type definitions in their docblocks:

 - `$max_body_length` defined as `int` can sometimes contain `false`.
 - `$stream_handle` defined as `resource` can also sometimes contain
 `false`.

 Both of these are fixed in the attached patch by adding `false` as an
 additional accepted type.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46860>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list