mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-26 08:14:26 +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:
@@ -38,8 +38,8 @@ function strip_ws( $txt ) {
|
||||
* add_action( 'foo', array( &$ma, 'action' ) );
|
||||
*/
|
||||
class MockAction {
|
||||
var $events;
|
||||
var $debug;
|
||||
public $events;
|
||||
public $debug;
|
||||
|
||||
/**
|
||||
* PHP5 constructor.
|
||||
@@ -184,8 +184,8 @@ class MockAction {
|
||||
// Convert valid XML to an array tree structure.
|
||||
// Kinda lame, but it works with a default PHP 4 installation.
|
||||
class TestXMLParser {
|
||||
var $xml;
|
||||
var $data = array();
|
||||
public $xml;
|
||||
public $data = array();
|
||||
|
||||
/**
|
||||
* PHP5 constructor.
|
||||
|
||||
Reference in New Issue
Block a user