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

    r48937 r49184  
    287287class Walker_Test extends Walker {
    288288
    289     var $tree_type = 'test';
    290     var $db_fields = array(
     289    public $tree_type = 'test';
     290    public $db_fields = array(
    291291        'parent' => 'parent',
    292292        'id'     => 'id',
Note: See TracChangeset for help on using the changeset viewer.