From 1c3a85d9b06faad7ae806787ac3332736924ab69 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 18 Mar 2023 22:21:56 +0100 Subject: [PATCH] build: Updating composer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mediawiki/mediawiki-codesniffer: 39.0.0 → 41.0.0 * mediawiki/mediawiki-phan-config: 0.11.1 → 0.12.0 Change-Id: I58715f1303b6c709f73b618abbfcef2b817531df --- composer.json | 4 ++-- includes/Hooks.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 0a6424dca..b3d15055b 100644 --- a/composer.json +++ b/composer.json @@ -33,8 +33,8 @@ "installer-name": "Vector" }, "require-dev": { - "mediawiki/mediawiki-codesniffer": "39.0.0", - "mediawiki/mediawiki-phan-config": "0.11.1", + "mediawiki/mediawiki-codesniffer": "41.0.0", + "mediawiki/mediawiki-phan-config": "0.12.0", "mediawiki/minus-x": "1.1.1", "php-parallel-lint/php-console-highlighter": "1.0.0", "php-parallel-lint/php-parallel-lint": "1.3.2" diff --git a/includes/Hooks.php b/includes/Hooks.php index ecbabcc3c..3f4dbc77c 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -182,6 +182,7 @@ class Hooks implements private static function updateViewsMenuIcons( &$content_navigation, $isLegacy ) { $featureManager = VectorServices::getFeatureManager(); + // @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset foreach ( $content_navigation['views'] as $key => $item ) { $icon = $item['icon'] ?? null; if ( $icon ) { @@ -548,6 +549,7 @@ class Hooks implements private static function createMoreOverflowMenu( &$content_navigation ) { $clonedViews = []; foreach ( array_keys( $content_navigation['views'] ?? [] ) as $key ) { + // @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset $newItem = $content_navigation['views'][$key]; self::makeMenuItemCollapsible( $newItem,