From 932c8d541ea7517d5e946d12abd30c997d5ca97c Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Mon, 3 May 2021 14:19:12 +0000 Subject: [PATCH] build: Updating composer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0 * php-parallel-lint/php-parallel-lint: 1.2.0 → 1.3.0 Change-Id: Ib71722afb42c300ec3d6a3cd3bfab7eddde18bdf --- composer.json | 4 ++-- includes/ServiceWiring.php | 4 ++-- package-lock.json | 12 ++++++++---- tests/phpunit/integration/SkinVectorTest.php | 4 ++-- 4 files changed, 14 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index f805d7d..6b648a5 100644 --- a/composer.json +++ b/composer.json @@ -33,11 +33,11 @@ "installer-name": "Vector" }, "require-dev": { - "mediawiki/mediawiki-codesniffer": "35.0.0", + "mediawiki/mediawiki-codesniffer": "36.0.0", "mediawiki/mediawiki-phan-config": "0.10.6", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "0.5.0", - "php-parallel-lint/php-parallel-lint": "1.2.0" + "php-parallel-lint/php-parallel-lint": "1.3.0" }, "scripts": { "fix": [ diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index f686793..c5bb9b3 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -31,10 +31,10 @@ use Vector\FeatureManagement\Requirements\WvuiSearchTreatmentRequirement; use Vector\SkinVersionLookup; return [ - Constants::SERVICE_CONFIG => function ( MediaWikiServices $services ) { + Constants::SERVICE_CONFIG => static function ( MediaWikiServices $services ) { return $services->getService( 'ConfigFactory' )->makeConfig( Constants::SKIN_NAME ); }, - Constants::SERVICE_FEATURE_MANAGER => function ( MediaWikiServices $services ) { + Constants::SERVICE_FEATURE_MANAGER => static function ( MediaWikiServices $services ) { $featureManager = new FeatureManager(); $featureManager->registerRequirement( diff --git a/package-lock.json b/package-lock.json index 38fbeb3..3f7a227 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2503,7 +2503,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", - "dev": true + "dev": true, + "optional": true }, "assign-symbols": { "version": "1.0.0", @@ -6224,7 +6225,8 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", - "dev": true + "dev": true, + "optional": true }, "fast-deep-equal": { "version": "2.0.1", @@ -8156,7 +8158,8 @@ "version": "0.1.1", "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", - "dev": true + "dev": true, + "optional": true }, "jsdoc": { "version": "3.6.3", @@ -13233,7 +13236,8 @@ "version": "0.14.5", "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", - "dev": true + "dev": true, + "optional": true }, "type-check": { "version": "0.4.0", diff --git a/tests/phpunit/integration/SkinVectorTest.php b/tests/phpunit/integration/SkinVectorTest.php index cc7e995..0c56a77 100644 --- a/tests/phpunit/integration/SkinVectorTest.php +++ b/tests/phpunit/integration/SkinVectorTest.php @@ -54,14 +54,14 @@ class SkinVectorTest extends MediaWikiIntegrationTestCase { $context->setLanguage( 'fr' ); $vectorTemplate = $this->provideVectorTemplateObject(); $this->setTemporaryHook( 'PersonalUrls', [ - function ( &$personal_urls, &$title, $skin ) { + static function ( &$personal_urls, &$title, $skin ) { $personal_urls = [ 'pt-1' => [ 'text' => 'pt1' ], ]; } ] ); $this->setTemporaryHook( 'SkinTemplateNavigation', [ - function ( &$skinTemplate, &$content_navigation ) { + static function ( &$skinTemplate, &$content_navigation ) { $content_navigation['actions'] = [ 'action-1' => [] ];