From b784e7d52730034dc3293508abe50a2e006012c1 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 3 Nov 2019 19:20:19 +0100 Subject: [PATCH] build: Updating mediawiki/mediawiki-phan-config to 0.8.0 Remove array check, because the variable always array at this location Bug: T235049 Change-Id: Ieb1287c1b02715dd69aa83e4485fe090883023ed --- composer.json | 2 +- includes/SpecialInterwiki.php | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index e4c5244b..5439ff81 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "mediawiki/mediawiki-codesniffer": "28.0.0", "jakub-onderka/php-console-highlighter": "0.3.2", "mediawiki/minus-x": "0.3.1", - "mediawiki/mediawiki-phan-config": "0.6.1" + "mediawiki/mediawiki-phan-config": "0.8.0" }, "scripts": { "fix": [ diff --git a/includes/SpecialInterwiki.php b/includes/SpecialInterwiki.php index 1c40df2d..59064353 100644 --- a/includes/SpecialInterwiki.php +++ b/includes/SpecialInterwiki.php @@ -404,9 +404,7 @@ class SpecialInterwiki extends SpecialPage { $this->getOutput()->addWikiMsg( 'interwiki-legend' ); - if ( ( !is_array( $iwPrefixes ) || count( $iwPrefixes ) === 0 ) && - ( !is_array( $iwGlobalPrefixes ) || count( $iwGlobalPrefixes ) === 0 ) - ) { + if ( $iwPrefixes === [] && $iwGlobalPrefixes === [] ) { // If the interwiki table(s) are empty, display an error message $this->error( 'interwiki_error' ); return;