Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/query/results.php

    r48937 r49184  
    1010    protected $q;
    1111
    12     static $cat_ids  = array();
    13     static $tag_ids  = array();
    14     static $post_ids = array();
    15 
    16     static $parent_one;
    17     static $parent_two;
    18     static $parent_three;
    19     static $child_one;
    20     static $child_two;
    21     static $child_three;
    22     static $child_four;
     12    public static $cat_ids  = array();
     13    public static $tag_ids  = array();
     14    public static $post_ids = array();
     15
     16    public static $parent_one;
     17    public static $parent_two;
     18    public static $parent_three;
     19    public static $child_one;
     20    public static $child_two;
     21    public static $child_three;
     22    public static $child_four;
    2323
    2424    public static function wpSetUpBeforeClass( $factory ) {
Note: See TracChangeset for help on using the changeset viewer.