From e87027cd3ca1735ad08a194d023bc2de427553a5 Mon Sep 17 00:00:00 2001
From: jrfnl <jrfnl@users.noreply.github.com>
Date: Mon, 28 Nov 2022 19:04:30 +0100
Subject: [PATCH] CS: always declare visibility for properties
---
tests/phpunit/tests/menu/wp-nav-menu.php | 10 +++++-----
tests/phpunit/tests/query/fieldsClause.php | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/phpunit/tests/menu/wp-nav-menu.php b/tests/phpunit/tests/menu/wp-nav-menu.php
index a077766567..08f105be9a 100644
|
a
|
b
|
|
| 7 | 7 | */ |
| 8 | 8 | class Tests_Menu_wpNavMenu extends WP_UnitTestCase { |
| 9 | 9 | |
| 10 | | static $menu_id = 0; |
| 11 | | static $lvl0_menu_item = 0; |
| 12 | | static $lvl1_menu_item = 0; |
| 13 | | static $lvl2_menu_item = 0; |
| 14 | | static $lvl3_menu_item = 0; |
| | 10 | private static $menu_id = 0; |
| | 11 | private static $lvl0_menu_item = 0; |
| | 12 | private static $lvl1_menu_item = 0; |
| | 13 | private static $lvl2_menu_item = 0; |
| | 14 | private static $lvl3_menu_item = 0; |
| 15 | 15 | |
| 16 | 16 | public static function set_up_before_class() { |
| 17 | 17 | parent::set_up_before_class(); |
diff --git a/tests/phpunit/tests/query/fieldsClause.php b/tests/phpunit/tests/query/fieldsClause.php
index 87f78a8719..28c040d79c 100644
|
a
|
b
|
class Tests_Query_FieldsClause extends WP_UnitTestCase { |
| 11 | 11 | * |
| 12 | 12 | * @var int[] |
| 13 | 13 | */ |
| 14 | | static $post_ids = array(); |
| | 14 | private static $post_ids = array(); |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Page IDs. |
| 18 | 18 | * |
| 19 | 19 | * @var int[] |
| 20 | 20 | */ |
| 21 | | static $page_ids = array(); |
| | 21 | private static $page_ids = array(); |
| 22 | 22 | |
| 23 | 23 | public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) { |
| 24 | 24 | // Register CPT for use with shared fixtures. |