[wp-trac] [WordPress Trac] #25450: remove_role() - invalid return statement

WordPress Trac noreply at wordpress.org
Mon Sep 30 19:33:43 UTC 2013


#25450: remove_role() - invalid return statement
--------------------------+------------------------------
 Reporter:  tivnet        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Users         |     Version:  2.0
 Severity:  trivial       |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by tivnet):

 Replying to [comment:1 GaryJ]:

 `@return void` is described as very valid here:
 http://www.phpdoc.org/docs/latest/for-users/phpdoc/types.html

 There could be cases when we might need to distinguish between `@return
 null` and `void`. Void, of course, is null in reality.

 But - I do not have any problem omitting `@return void`.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25450#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list