Make WordPress Core


Ignore:
Timestamp:
10/17/2020 04:24:35 PM (3 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/testcase-canonical.php

    r47781 r49184  
    22
    33class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
    4     static $old_current_user;
    5     static $author_id;
    6     static $post_ids    = array();
    7     static $comment_ids = array();
    8     static $term_ids    = array();
    9     static $terms       = array();
    10     static $old_options = array();
     4    public static $old_current_user;
     5    public static $author_id;
     6    public static $post_ids    = array();
     7    public static $comment_ids = array();
     8    public static $term_ids    = array();
     9    public static $terms       = array();
     10    public static $old_options = array();
    1111
    1212    /**
Note: See TracChangeset for help on using the changeset viewer.