[wp-trac] [WordPress Trac] #54177: Add visibility to test class methods

WordPress Trac noreply at wordpress.org
Mon Oct 18 17:51:31 UTC 2021


#54177: Add visibility to test class methods
---------------------------------------------+-----------------------------
 Reporter:  costdev                          |       Owner:  hellofromTonya
     Type:  enhancement                      |      Status:  reviewing
 Priority:  normal                           |   Milestone:  5.9
Component:  Build/Test Tools                 |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch has-unit-tests commit  |     Focuses:  coding-
                                             |  standards
---------------------------------------------+-----------------------------

Comment (by hellofromTonya):

 In [changeset:"51919" 51919]:
 {{{
 #!CommitTicketReference repository="" revision="51919"
 Coding Standards: Add `public` visibility to methods in `src` directory.

 This commit adds the `public` visibility keyword to each method which did
 not have an explicit visibility keyword.

 Why `public`?

 With no visibility previously declared, these methods are implicitly
 `public` and available for use. Changing them to anything else would be a
 backwards-compatibility break.

 Props costdev, jrf.
 See #54177.
 }}}

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


More information about the wp-trac mailing list