From 86246f01725d734dc3510c5c6d5ddceccf5ae1c5 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 9 Oct 2019 15:45:51 -0700 Subject: [PATCH] build: Upgrade mediawiki-codesniffer to v28.0.0 Change-Id: I12c3660e74e42937f6cfb31ec4771a67d8651f42 --- .phpcs.xml | 1 + composer.json | 2 +- tests/phpunit/CaptchaAuthenticationRequestTest.php | 2 +- tests/phpunit/CaptchaPreAuthenticationProviderTest.php | 4 ++-- tests/phpunit/QuestyCaptchaTest.php | 2 +- tests/phpunit/SimpleCaptcha/CaptchaTest.php | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.phpcs.xml b/.phpcs.xml index 7a910146d..25552ace3 100644 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -2,6 +2,7 @@ + . diff --git a/composer.json b/composer.json index f2060aad3..f10026ad8 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "1.0.0", - "mediawiki/mediawiki-codesniffer": "26.0.0", + "mediawiki/mediawiki-codesniffer": "28.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", "mediawiki/mediawiki-phan-config": "0.6.1" diff --git a/tests/phpunit/CaptchaAuthenticationRequestTest.php b/tests/phpunit/CaptchaAuthenticationRequestTest.php index aae874c16..67deed5db 100644 --- a/tests/phpunit/CaptchaAuthenticationRequestTest.php +++ b/tests/phpunit/CaptchaAuthenticationRequestTest.php @@ -6,7 +6,7 @@ use MediaWiki\Auth\AuthenticationRequestTestCase; * @covers CaptchaAuthenticationRequest */ class CaptchaAuthenticationRequestTest extends AuthenticationRequestTestCase { - public function setUp() { + public function setUp() : void { parent::setUp(); $this->setMwGlobals( [ 'wgCaptchaClass' => SimpleCaptcha::class, diff --git a/tests/phpunit/CaptchaPreAuthenticationProviderTest.php b/tests/phpunit/CaptchaPreAuthenticationProviderTest.php index 39074c682..0cdab1a8e 100644 --- a/tests/phpunit/CaptchaPreAuthenticationProviderTest.php +++ b/tests/phpunit/CaptchaPreAuthenticationProviderTest.php @@ -9,7 +9,7 @@ use Wikimedia\TestingAccessWrapper; * @group Database */ class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase { - public function setUp() { + public function setUp() : void { parent::setUp(); $this->setMwGlobals( [ 'wgCaptchaClass' => SimpleCaptcha::class, @@ -28,7 +28,7 @@ class CaptchaPreAuthenticationProviderTest extends MediaWikiTestCase { } } - public function tearDown() { + public function tearDown() : void { parent::tearDown(); // make sure $wgCaptcha resets between tests TestingAccessWrapper::newFromClass( ConfirmEditHooks::class )->instanceCreated = false; diff --git a/tests/phpunit/QuestyCaptchaTest.php b/tests/phpunit/QuestyCaptchaTest.php index fc9679950..27310b723 100644 --- a/tests/phpunit/QuestyCaptchaTest.php +++ b/tests/phpunit/QuestyCaptchaTest.php @@ -5,7 +5,7 @@ */ class QuestyCaptchaTest extends MediaWikiTestCase { - public function setUp() { + public function setUp() : void { parent::setUp(); $this->mergeMwGlobalArrayValue( diff --git a/tests/phpunit/SimpleCaptcha/CaptchaTest.php b/tests/phpunit/SimpleCaptcha/CaptchaTest.php index 2329212dc..1fbb94777 100644 --- a/tests/phpunit/SimpleCaptcha/CaptchaTest.php +++ b/tests/phpunit/SimpleCaptcha/CaptchaTest.php @@ -11,7 +11,7 @@ class CaptchaTest extends MediaWikiTestCase { /** @var ScopedCallback[] */ private $hold = []; - public function tearDown() { + public function tearDown() : void { // Destroy any ScopedCallbacks being held $this->hold = []; parent::tearDown();