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/user/listAuthors.php

    r48944 r49184  
    55 */
    66class Tests_User_ListAuthors extends WP_UnitTestCase {
    7     static $user_ids = array();
    8     static $fred_id;
    9     static $posts     = array();
    10     static $user_urls = array();
     7    public static $user_ids = array();
     8    public static $fred_id;
     9    public static $posts     = array();
     10    public static $user_urls = array();
    1111        /* Defaults
    1212        'orderby'       => 'name',
Note: See TracChangeset for help on using the changeset viewer.