[wp-trac] [WordPress Trac] #44454: Argument type in PHPDoc comment does not match with the parameter type

WordPress Trac noreply at wordpress.org
Tue Jan 15 06:17:47 UTC 2019


#44454: Argument type in PHPDoc comment does not match with the parameter type
------------------------------+-------------------------------------
 Reporter:  subrataemfluence  |       Owner:  pento
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.1
Component:  Cache API         |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:  docs, coding-standards
------------------------------+-------------------------------------
Changes (by pento):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44601" 44601]:
 {{{
 #!CommitTicketReference repository="" revision="44601"
 Docs: Fix the `WP_Object_Cache::get()` docblock.

 The `$force` parameter is a `bool`, not a `string`. The matching
 `wp_cache_get()` docblock has the correct type.

 Props subrataemfluence.
 Fixes #44454.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44454#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list