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/functions/wpListFilter.php

    r49006 r49184  
    99 */
    1010class Tests_Functions_wpListFilter extends WP_UnitTestCase {
    11     var $object_list = array();
    12     var $array_list  = array();
     11    public $object_list = array();
     12    public $array_list  = array();
    1313
    1414    function setUp() {
Note: See TracChangeset for help on using the changeset viewer.