Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (5 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/xmlrpc/wp/getPost.php

    r48937 r49184  
    55 */
    66class Tests_XMLRPC_wp_getPost extends WP_XMLRPC_UnitTestCase {
    7     var $post_data;
    8     var $post_id;
    9     var $post_date_ts;
    10     var $post_custom_field;
     7    public $post_data;
     8    public $post_id;
     9    public $post_date_ts;
     10    public $post_custom_field;
    1111
    1212    function setUp() {
Note: See TracChangeset for help on using the changeset viewer.