mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@49184 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
|
||||
class WP_Canonical_UnitTestCase extends WP_UnitTestCase {
|
||||
static $old_current_user;
|
||||
static $author_id;
|
||||
static $post_ids = array();
|
||||
static $comment_ids = array();
|
||||
static $term_ids = array();
|
||||
static $terms = array();
|
||||
static $old_options = array();
|
||||
public static $old_current_user;
|
||||
public static $author_id;
|
||||
public static $post_ids = array();
|
||||
public static $comment_ids = array();
|
||||
public static $term_ids = array();
|
||||
public static $terms = array();
|
||||
public static $old_options = array();
|
||||
|
||||
/**
|
||||
* This can be defined in a subclass of this class which contains its own data() method.
|
||||
|
||||
Reference in New Issue
Block a user