[wp-trac] [WordPress Trac] #48615: parameter types for both parameters of set_image_handler use invalid phpdoc keywords

WordPress Trac noreply at wordpress.org
Wed Nov 13 21:22:18 UTC 2019


#48615: parameter types for both parameters of set_image_handler use invalid phpdoc
keywords
--------------------------+-----------------------------
 Reporter:  diddledan     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Feeds         |    Version:  trunk
 Severity:  trivial       |   Keywords:  has-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 In `wp-includes/class-simplepie.php.php` the param types of
 `set_image_handler` are both documented as `str`, which is not a valid
 keyword according to the phpdoc specification:
 https://docs.phpdoc.org/guides/types.html

 The attached patch corrects `str` to be `string`.

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


More information about the wp-trac mailing list