[wp-trac] [WordPress Trac] #44450: Functions/methods do not return any value in classes should use @return void.

WordPress Trac noreply at wordpress.org
Mon Jun 25 07:30:40 UTC 2018


#44450: Functions/methods do not return any value in classes should use @return
void.
------------------------------------+-----------------------------
 Reporter:  subrataemfluence        |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Widgets                 |    Version:  trunk
 Severity:  normal                  |   Keywords:  needs-patch
  Focuses:  docs, coding-standards  |
------------------------------------+-----------------------------
 Several classes inside `wp-includes/widgets` directory are missing
 `@return void` in function docs which are `echo`-ing output but not
 returning any value.

 There are many other areas in the core which are using this approach. We
 need to be consistent.

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


More information about the wp-trac mailing list