[wp-trac] [WordPress Trac] #22234: Use access modifiers in classes, not the var keyword

WordPress Trac noreply at wordpress.org
Sat Oct 17 16:24:50 UTC 2020


#22234: Use access modifiers in classes, not the var keyword
----------------------------+---------------------
 Reporter:  wonderboymusic  |       Owner:  (none)
     Type:  enhancement     |      Status:  closed
 Priority:  normal          |   Milestone:  4.0
Component:  General         |     Version:  1.5
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+---------------------

Comment (by SergeyBiryukov):

 In [changeset:"49184" 49184]:
 {{{
 #!CommitTicketReference repository="" revision="49184"
 Code Modernization: Use explicit visibility for class property
 declarations.

 Using `var` or only `static` to declare a class property is PHP 4 code.

 This updates the codebase to use explicit visibility modifiers introduced
 in PHP 5.

 Props jrf.
 Fixes #51557. See #22234.
 }}}

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


More information about the wp-trac mailing list