[wp-trac] [WordPress Trac] #49032: Introduce __return_value()

WordPress Trac noreply at wordpress.org
Wed Dec 18 19:25:12 UTC 2019


#49032: Introduce __return_value()
--------------------------------+------------------------------
 Reporter:  giuseppe.mazzapica  |       Owner:  (none)
     Type:  feature request     |      Status:  new
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  General             |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:
--------------------------------+------------------------------

Comment (by giuseppe.mazzapica):

 Replying to [comment:1 Rarst]:
 > Related on removing complex callbacks #46635

 Ok. Don't make much sense to me in this case because if someone wants a
 filter to return a constant value, they will use a closure anyway. But I
 don't expect consensus in core to make sense to me.

 I guess in a few months when I'll move everything to PHP 7.4 I'll just use
 short closures and forget about this.

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


More information about the wp-trac mailing list