Make WordPress Core


Ignore:
Timestamp:
11/29/2022 12:40:08 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Add visibility to properties in tests/phpunit/tests/.

Adds a private visibility to some test class properties where it was not explicitly specified. This continues the previous efforts to make sure visibility is declared on all properties.

Note: This will be enforced by WPCS 3.0.0.

Follow-up to [49184], [51919], [52009], [52010], [54889].

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/menu/wp-nav-menu.php

    r54801 r54890  
    88class Tests_Menu_wpNavMenu extends WP_UnitTestCase {
    99
    10     static $menu_id        = 0;
    11     static $lvl0_menu_item = 0;
    12     static $lvl1_menu_item = 0;
    13     static $lvl2_menu_item = 0;
    14     static $lvl3_menu_item = 0;
     10    private static $menu_id        = 0;
     11    private static $lvl0_menu_item = 0;
     12    private static $lvl1_menu_item = 0;
     13    private static $lvl2_menu_item = 0;
     14    private static $lvl3_menu_item = 0;
    1515
    1616    public static function set_up_before_class() {
Note: See TracChangeset for help on using the changeset viewer.