[wp-trac] [WordPress Trac] #53359: Coding Standards fixes for WP 5.9

WordPress Trac noreply at wordpress.org
Thu Aug 26 12:57:27 UTC 2021


#53359: Coding Standards fixes for WP 5.9
---------------------------------------------+---------------------
 Reporter:  desrosj                          |       Owner:  (none)
     Type:  task (blessed)                   |      Status:  new
 Priority:  normal                           |   Milestone:  5.9
Component:  General                          |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:
---------------------------------------------+---------------------

Comment (by hellofromTonya):

 In [changeset:"51657" 51657]:
 {{{
 #!CommitTicketReference repository="" revision="51657"
 Coding Standards: Use static closures when not using `$this`.

 When a closure does not use `$this`, it can be made `static` for improved
 performance.

 Static closures are supported in PHP since PHP 5.4. ​

 Props jrf, hellofromTonya, swissspidy, SergeyBiryukov.
 See #53359.
 }}}

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


More information about the wp-trac mailing list