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/http/base.php

    r49033 r49184  
    1313abstract class WP_HTTP_UnitTestCase extends WP_UnitTestCase {
    1414    // You can use your own version of data/WPHTTP-testcase-redirection-script.php here.
    15     var $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
    16     var $file_stream_url    = 'http://s.w.org/screenshots/3.9/dashboard.png';
     15    public $redirection_script = 'http://api.wordpress.org/core/tests/1.0/redirection.php';
     16    public $file_stream_url    = 'http://s.w.org/screenshots/3.9/dashboard.png';
    1717
    1818    protected $http_request_args;
Note: See TracChangeset for help on using the changeset viewer.