From 0f087ce5e946bdfb67404797d59aa61d385b23d7 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 19 May 2021 19:38:42 +0200 Subject: [PATCH] build: Updating composer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * php-parallel-lint/php-parallel-lint: 1.0.0 → 1.3.0 * mediawiki/mediawiki-codesniffer: 35.0.0 → 36.0.0 * mediawiki/minus-x: 1.1.0 → 1.1.1 Libup is broken on the build steps due to different node versions Change-Id: I28aefe77365b9812f9cc0f9e5177f45e9f5c2cc2 --- composer.json | 6 +++--- includes/ServiceWiring.php | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/composer.json b/composer.json index 3cf5aea69..9179c79d5 100644 --- a/composer.json +++ b/composer.json @@ -1,9 +1,9 @@ { "require-dev": { - "php-parallel-lint/php-parallel-lint": "1.2.0", - "mediawiki/mediawiki-codesniffer": "35.0.0", + "php-parallel-lint/php-parallel-lint": "1.3.0", + "mediawiki/mediawiki-codesniffer": "36.0.0", "php-parallel-lint/php-console-highlighter": "0.5.0", - "mediawiki/minus-x": "1.1.0", + "mediawiki/minus-x": "1.1.1", "mediawiki/mediawiki-phan-config": "0.10.6" }, "scripts": { diff --git a/includes/ServiceWiring.php b/includes/ServiceWiring.php index 5df05d859..fa5d5e5ab 100644 --- a/includes/ServiceWiring.php +++ b/includes/ServiceWiring.php @@ -11,31 +11,31 @@ use Popups\UserPreferencesChangeHandler; * @codeCoverageIgnore */ return [ - 'Popups.Config' => function ( MediaWikiServices $services ) { + 'Popups.Config' => static function ( MediaWikiServices $services ) { return $services->getService( 'ConfigFactory' ) ->makeConfig( PopupsContext::EXTENSION_NAME ); }, - 'Popups.GadgetsIntegration' => function ( MediaWikiServices $services ) { + 'Popups.GadgetsIntegration' => static function ( MediaWikiServices $services ) { return new PopupsGadgetsIntegration( $services->getService( 'Popups.Config' ), ExtensionRegistry::getInstance() ); }, - 'Popups.EventLogger' => function ( MediaWikiServices $services ) { + 'Popups.EventLogger' => static function ( MediaWikiServices $services ) { $factory = new EventLoggerFactory( ExtensionRegistry::getInstance() ); return $factory->get(); }, - 'Popups.UserPreferencesChangeHandler' => function ( MediaWikiServices $services ) { + 'Popups.UserPreferencesChangeHandler' => static function ( MediaWikiServices $services ) { return new UserPreferencesChangeHandler( $services->getService( 'Popups.Context' ) ); }, - 'Popups.Logger' => function ( MediaWikiServices $services ) { + 'Popups.Logger' => static function ( MediaWikiServices $services ) { return LoggerFactory::getInstance( PopupsContext::LOGGER_CHANNEL ); }, - 'Popups.Context' => function ( MediaWikiServices $services ) { + 'Popups.Context' => static function ( MediaWikiServices $services ) { return new PopupsContext( $services->getService( 'Popups.Config' ), ExtensionRegistry::getInstance(),