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

WordPress Trac noreply at wordpress.org
Fri Apr 5 10:05:13 UTC 2019


#44450: Functions/methods do not return any value in classes should use @return
void in method doc
-------------------------------------+-------------------------------------
 Reporter:  subrataemfluence         |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Widgets                  |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:  docs, coding-standards
-------------------------------------+-------------------------------------

Comment (by szepe.viktor):

 Maybe `@return string|void` is much more important than the above things.

 Would it be possible to change all **void+some type** returns to null+some
 type?

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


More information about the wp-trac mailing list