From d6def861bfe6f2c95006d67e7b81841868240e45 Mon Sep 17 00:00:00 2001 From: Vivek Ghaisas Date: Sun, 21 Jun 2015 00:07:13 +0300 Subject: [PATCH] Explicitly declare property visibility, remove use of var Codesniffer says that the `var` keyword must not be used to declare a property and that visibility must be declared on class properties. Change-Id: I28240aa0f394588b1df315621dbcd260c51430c1 --- .../includes/htmlform/HTMLAutoCompleteSelectFieldTest.php | 2 +- tests/phpunit/includes/registration/ExtensionProcessorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php index 2c7f50c9c4..3b5347cde9 100644 --- a/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php +++ b/tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php @@ -6,7 +6,7 @@ */ class HtmlAutoCompleteSelectFieldTest extends MediaWikiTestCase { - var $options = array( + public $options = array( 'Bulgaria' => 'BGR', 'Burkina Faso' => 'BFA', 'Burundi' => 'BDI', diff --git a/tests/phpunit/includes/registration/ExtensionProcessorTest.php b/tests/phpunit/includes/registration/ExtensionProcessorTest.php index 2df5568a39..a79c9a878d 100644 --- a/tests/phpunit/includes/registration/ExtensionProcessorTest.php +++ b/tests/phpunit/includes/registration/ExtensionProcessorTest.php @@ -14,7 +14,7 @@ class ExtensionProcessorTest extends MediaWikiTestCase { * * @var array */ - static $default = array( + public static $default = array( 'name' => 'FooBar', ); -- 2.20.1