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

    r48939 r49184  
    44 */
    55class Tests_Query_CommentCount extends WP_UnitTestCase {
    6     static $post_ids = array();
     6    public static $post_ids = array();
    77    public $q;
    8     static $post_type = 'page'; // Can be anything.
     8    public static $post_type = 'page'; // Can be anything.
    99
    1010    public function setUp() {
Note: See TracChangeset for help on using the changeset viewer.