Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (6 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/feed/rss2.php

    r48937 r49184  
    1010 */
    1111class Tests_Feeds_RSS2 extends WP_UnitTestCase {
    12         static $user_id;
    13         static $posts;
    14         static $category;
    15         static $post_date;
     12        public static $user_id;
     13        public static $posts;
     14        public static $category;
     15        public static $post_date;
    1616
    1717        /**
Note: See TracChangeset for help on using the changeset viewer.