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

WordPress Trac noreply at wordpress.org
Mon Jun 25 13:49:34 UTC 2018


#44454: Argument type in PHODoc comment does not match with the parameter type
------------------------------------+-----------------------------
 Reporter:  subrataemfluence        |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Cache API               |    Version:  trunk
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:  docs, coding-standards  |
------------------------------------+-----------------------------
 File: /wp-includes/cache.php

 {{{#!php
 <?php
 ...
 * @param string     $force  Optional. Unused. Whether to force a refetch
 rather than relying on the local
 ...
 public function get( $key, $group = 'default', $force = false, &$found =
 null ) {
   ...
 }

 }}}

 Should be:

 {{{#!php
 <?php
 * @param bool     $force  Optional. Unused. Whether to force a refetch
 rather than relying on the local
 }}}

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


More information about the wp-trac mailing list