mediawiki/extensions/Cognate: main (log #358227)

sourcepatches

This run took 21 seconds.

From 3b216ada915cb251ec35d4997788e45c99faf473 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Thu, 22 Jul 2021 06:10:28 +0000
Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 37.0.0

Change-Id: I89484234194e3fa9c9916b83bcb1affe6416f881
---
 composer.json                                      | 2 +-
 tests/phpunit/CognateIntegrationTest.php           | 2 +-
 tests/phpunit/CognateStoreIntegrationTest.php      | 2 +-
 tests/phpunit/hooks/CognatePageHookHandlerTest.php | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/composer.json b/composer.json
index dee4816..beecd42 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "36.0.0",
+		"mediawiki/mediawiki-codesniffer": "37.0.0",
 		"mediawiki/mediawiki-phan-config": "0.10.6",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
diff --git a/tests/phpunit/CognateIntegrationTest.php b/tests/phpunit/CognateIntegrationTest.php
index 9182086..aa8d6fb 100644
--- a/tests/phpunit/CognateIntegrationTest.php
+++ b/tests/phpunit/CognateIntegrationTest.php
@@ -34,7 +34,7 @@ class CognateIntegrationTest extends MediaWikiTestCase {
 	/** @var string */
 	private $dbName;
 
-	public function setUp() : void {
+	public function setUp(): void {
 		parent::setUp();
 
 		$this->markTestSkippedIfNo64bit();
diff --git a/tests/phpunit/CognateStoreIntegrationTest.php b/tests/phpunit/CognateStoreIntegrationTest.php
index ad18000..1c5b7d9 100644
--- a/tests/phpunit/CognateStoreIntegrationTest.php
+++ b/tests/phpunit/CognateStoreIntegrationTest.php
@@ -29,7 +29,7 @@ class CognateStoreIntegrationTest extends \MediaWikiTestCase {
 	/** @var int */
 	private $UTPageNameHash;
 
-	protected function setUp() : void {
+	protected function setUp(): void {
 		parent::setUp();
 
 		$this->markTestSkippedIfNo64bit();
diff --git a/tests/phpunit/hooks/CognatePageHookHandlerTest.php b/tests/phpunit/hooks/CognatePageHookHandlerTest.php
index f236e01..97f8159 100644
--- a/tests/phpunit/hooks/CognatePageHookHandlerTest.php
+++ b/tests/phpunit/hooks/CognatePageHookHandlerTest.php
@@ -27,7 +27,7 @@ class CognatePageHookHandlerTest extends \MediaWikiTestCase {
 	 */
 	private $repo;
 
-	public function setUp() : void {
+	public function setUp(): void {
 		parent::setUp();
 		$repo = $this->getMockBuilder( CognateRepo::class )
 			->disableOriginalConstructor()
-- 
2.20.1

$ date
Thu Jul 22 06:10:11 UTC 2021

$ git clone file:///srv/git/mediawiki-extensions-Cognate.git repo --depth=1 -b master
Cloning into 'repo'...

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
4ea11c4dc88dc215b3cd3dddf8a8431f133be96c refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 32 installs, 0 updates, 0 removals
  - Installing squizlabs/php_codesniffer (3.6.0): Loading from cache
  - Installing composer/spdx-licenses (1.5.5): Loading from cache
  - Installing composer/semver (3.2.5): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (v36.0.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.23.0): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.23.0): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.23.0): Loading from cache
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/string (v5.3.3): Loading from cache
  - Installing psr/container (1.1.1): Loading from cache
  - Installing symfony/service-contracts (v2.4.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.23.0): Loading from cache
  - Installing symfony/deprecation-contracts (v2.4.0): Loading from cache
  - Installing symfony/console (v5.3.2): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing sabre/event (5.1.2): Loading from cache
  - Installing netresearch/jsonmapper (v3.1.1): Loading from cache
  - Installing microsoft/tolerant-php-parser (v0.0.23): Loading from cache
  - Installing phpdocumentor/reflection-common (2.2.0): Loading from cache
  - Installing webmozart/assert (1.10.0): Loading from cache
  - Installing phpdocumentor/type-resolver (1.4.0): Loading from cache
  - Installing phpdocumentor/reflection-docblock (5.2.2): Loading from cache
  - Installing felixfbecker/advanced-json-rpc (v3.2.1): Loading from cache
  - Installing composer/xdebug-handler (1.4.6): Loading from cache
  - Installing phan/phan (3.2.6): Loading from cache
  - Installing mediawiki/phan-taint-check-plugin (3.2.1): Loading from cache
  - Installing mediawiki/mediawiki-phan-config (0.10.6): Loading from cache
  - Installing mediawiki/minus-x (1.1.1): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.3.0): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
phan/phan suggests installing ext-ast (Needed for parsing ASTs (unless --use-fallback-parser is used). 1.0.1+ is needed, 1.0.8+ is recommended.)
Writing lock file
Generating autoload files
13 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading c:mediawiki/mediawiki-codesniffer from 36.0.0 -> 37.0.0
$ composer update
Loading composer repositories with package information
Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 1 install, 1 update, 0 removals
  - Installing sebastian/diff (3.0.3): Loading from cache
  - Updating mediawiki/mediawiki-codesniffer (v36.0.0 => v37.0.0): Loading from cache
Writing lock file
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

set()
Tests fail!
$ vendor/bin/phpcbf

PHPCBF RESULT SUMMARY
----------------------------------------------------------------------
FILE                                                  FIXED  REMAINING
----------------------------------------------------------------------
...ests/phpunit/hooks/CognatePageHookHandlerTest.php  1      0
...epo/tests/phpunit/CognateStoreIntegrationTest.php  1      0
/src/repo/tests/phpunit/CognateIntegrationTest.php    1      0
----------------------------------------------------------------------
A TOTAL OF 3 ERRORS WERE FIXED IN 3 FILES
----------------------------------------------------------------------

Time: 485ms; Memory: 12MB



$ git checkout .phpcs.xml

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
14 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

$ composer test
> parallel-lint . --exclude vendor --exclude node_modules
PHP 7.3.27 | 10 parallel jobs
............................                                 28/28 (100 %)


Checked 28 files in 0.2 seconds
No syntax error found
> phpcs -p -s
............................ 28 / 28 (100%)


Time: 346ms; Memory: 12MB

> minus-x check .
MinusX
======
Processing /src/repo...
.............................................................
...................................
All good!

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

$ git add .

$ git commit -F /tmp/tmp5a1bb0g6
[master 3b216ad] build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
 4 files changed, 4 insertions(+), 4 deletions(-)

$ git format-patch HEAD~1 --stdout
From 3b216ada915cb251ec35d4997788e45c99faf473 Mon Sep 17 00:00:00 2001
From: libraryupgrader <tools.libraryupgrader@tools.wmflabs.org>
Date: Thu, 22 Jul 2021 06:10:28 +0000
Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 37.0.0

Change-Id: I89484234194e3fa9c9916b83bcb1affe6416f881
---
 composer.json                                      | 2 +-
 tests/phpunit/CognateIntegrationTest.php           | 2 +-
 tests/phpunit/CognateStoreIntegrationTest.php      | 2 +-
 tests/phpunit/hooks/CognatePageHookHandlerTest.php | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/composer.json b/composer.json
index dee4816..beecd42 100644
--- a/composer.json
+++ b/composer.json
@@ -1,6 +1,6 @@
 {
 	"require-dev": {
-		"mediawiki/mediawiki-codesniffer": "36.0.0",
+		"mediawiki/mediawiki-codesniffer": "37.0.0",
 		"mediawiki/mediawiki-phan-config": "0.10.6",
 		"mediawiki/minus-x": "1.1.1",
 		"php-parallel-lint/php-console-highlighter": "0.5.0",
diff --git a/tests/phpunit/CognateIntegrationTest.php b/tests/phpunit/CognateIntegrationTest.php
index 9182086..aa8d6fb 100644
--- a/tests/phpunit/CognateIntegrationTest.php
+++ b/tests/phpunit/CognateIntegrationTest.php
@@ -34,7 +34,7 @@ class CognateIntegrationTest extends MediaWikiTestCase {
 	/** @var string */
 	private $dbName;
 
-	public function setUp() : void {
+	public function setUp(): void {
 		parent::setUp();
 
 		$this->markTestSkippedIfNo64bit();
diff --git a/tests/phpunit/CognateStoreIntegrationTest.php b/tests/phpunit/CognateStoreIntegrationTest.php
index ad18000..1c5b7d9 100644
--- a/tests/phpunit/CognateStoreIntegrationTest.php
+++ b/tests/phpunit/CognateStoreIntegrationTest.php
@@ -29,7 +29,7 @@ class CognateStoreIntegrationTest extends \MediaWikiTestCase {
 	/** @var int */
 	private $UTPageNameHash;
 
-	protected function setUp() : void {
+	protected function setUp(): void {
 		parent::setUp();
 
 		$this->markTestSkippedIfNo64bit();
diff --git a/tests/phpunit/hooks/CognatePageHookHandlerTest.php b/tests/phpunit/hooks/CognatePageHookHandlerTest.php
index f236e01..97f8159 100644
--- a/tests/phpunit/hooks/CognatePageHookHandlerTest.php
+++ b/tests/phpunit/hooks/CognatePageHookHandlerTest.php
@@ -27,7 +27,7 @@ class CognatePageHookHandlerTest extends \MediaWikiTestCase {
 	 */
 	private $repo;
 
-	public function setUp() : void {
+	public function setUp(): void {
 		parent::setUp();
 		$repo = $this->getMockBuilder( CognateRepo::class )
 			->disableOriginalConstructor()
-- 
2.20.1

Source code is licensed under the AGPL.