mediawiki/extensions/EventBus: main (log #539709)

sourcepatches

This run took 69 seconds.

From ece6dbbe5d355568e871531d5f74c095a708225f Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Sat, 13 Nov 2021 22:47:24 +0000
Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 38.0.0

Additional changes:
* composer.json: Updated phpcs command in composer test (T280592).
* composer.json: Added phpcs command to scripts (T280592).

Change-Id: Ica1a0db97f0dbe23cc6c917e752e61d6369801c4
---
 composer.json                                  | 7 ++++---
 package-lock.json                              | 3 ++-
 tests/phpunit/integration/EventFactoryTest.php | 8 ++++----
 3 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/composer.json b/composer.json
index e54f534..d8c4320 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "37.0.0",
+		"mediawiki/mediawiki-codesniffer": "38.0.0",
 		"mediawiki/mediawiki-phan-config": "0.11.0",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
@@ -9,13 +9,14 @@
 	"scripts": {
 		"test": [
 			"parallel-lint . --exclude node_modules --exclude vendor",
-			"phpcs -p -s",
+			"@phpcs",
 			"minus-x check ."
 		],
 		"fix": [
 			"minus-x fix .",
 			"phpcbf"
 		],
-		"phan": "phan -d . --long-progress-bar"
+		"phan": "phan -d . --long-progress-bar",
+		"phpcs": "phpcs -sp --cache"
 	}
 }
diff --git a/package-lock.json b/package-lock.json
index 4db6fa6..a885989 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -106,7 +106,8 @@
 		"ansi-regex": {
 			"version": "5.0.1",
 			"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
-			"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ=="
+			"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
+			"dev": true
 		},
 		"ansi-styles": {
 			"version": "3.2.1",
diff --git a/tests/phpunit/integration/EventFactoryTest.php b/tests/phpunit/integration/EventFactoryTest.php
index b92df73..94e4194 100644
--- a/tests/phpunit/integration/EventFactoryTest.php
+++ b/tests/phpunit/integration/EventFactoryTest.php
@@ -820,10 +820,10 @@ class EventFactoryTest extends MediaWikiIntegrationTestCase {
 			"'page_title' incorrect value" );
 		$this->assertArrayHasKey( 'prior_state', $event, "'prior_state' key missing" );
 		$this->assertArrayHasKey( 'page_id', $event['prior_state'], "'page_id' key missing" );
-		$this->assertEquals( $event['prior_state']['page_id'], 1,
+		$this->assertSame( 1, $event['prior_state']['page_id'],
 			"'prior_state/page_id' incorrect value" );
 		$this->assertArrayHasKey( 'comment', $event, "'comment' key missing" );
-		$this->assertEquals( $event['comment'], 'testreason',
+		$this->assertEquals( 'testreason', $event['comment'],
 			"'comment' incorrect value" );
 		$this->assertStream( $event, 'mediawiki.page-undelete' );
 	}
@@ -838,8 +838,8 @@ class EventFactoryTest extends MediaWikiIntegrationTestCase {
 		$this->assertArrayHasKey( 'tags', $event, "'tags' key missing" );
 		$this->assertArrayHasKey( '0', $event['tags'], "'tags/0' key missing" );
 		$this->assertArrayHasKey( '1', $event['tags'],  "'tags/1' key missing" );
-		$this->assertEquals( $event['tags']['0'], 'tag0', "'tags/0' incorrect value" );
-		$this->assertEquals( $event['tags']['1'], 'tag1', "'tags/1' incorrect value" );
+		$this->assertEquals( 'tag0', $event['tags']['0'], "'tags/0' incorrect value" );
+		$this->assertEquals( 'tag1', $event['tags']['1'], "'tags/1' incorrect value" );
 		$this->assertStream( $event, 'resource_change' );
 	}
 
-- 
2.20.1

**purged**
Source code is licensed under the AGPL.