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/includes/utils.php

    r49108 r49184  
    3939 */
    4040class MockAction {
    41     var $events;
    42     var $debug;
     41    public $events;
     42    public $debug;
    4343
    4444    /**
     
    185185// Kinda lame, but it works with a default PHP 4 installation.
    186186class TestXMLParser {
    187     var $xml;
    188     var $data = array();
     187    public $xml;
     188    public $data = array();
    189189
    190190    /**
Note: See TracChangeset for help on using the changeset viewer.