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/countUserPosts.php

    r46586 r49184  
    66 */
    77class Tests_User_CountUserPosts extends WP_UnitTestCase {
    8     static $user_id;
    9     static $post_ids = array();
     8    public static $user_id;
     9    public static $post_ids = array();
    1010
    1111    public static function wpSetUpBeforeClass( $factory ) {
Note: See TracChangeset for help on using the changeset viewer.