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:
Sergey Biryukov
2020-10-17 16:24:35 +00:00
parent 5b6a20af07
commit 5bad4e7f8d
38 changed files with 120 additions and 120 deletions

View File

@@ -5,8 +5,8 @@
* @group post
*/
class Tests_User_CountUserPosts extends WP_UnitTestCase {
static $user_id;
static $post_ids = array();
public static $user_id;
public static $post_ids = array();
public static function wpSetUpBeforeClass( $factory ) {
self::$user_id = $factory->user->create(