[wp-trac] [WordPress Trac] #58323: Use static closures whenever $this is not used to avoid memory leaks

WordPress Trac noreply at wordpress.org
Tue May 16 10:17:53 UTC 2023


#58323: Use static closures whenever $this is not used to avoid memory leaks
-------------------------+--------------------------------------------
 Reporter:  westonruter  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  performance, coding-standards
-------------------------+--------------------------------------------

Comment (by spacedmonkey):

 Replying to [comment:2 jrf]:
 > * Including the Slevomat sniff is out of the question.

 +1

 Left my thoughts on the PR.

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


More information about the wp-trac mailing list