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
This commit is contained in:
Umherirrender 2019-11-03 19:20:19 +01:00
parent 4bda0c4dac
commit b784e7d527
2 changed files with 2 additions and 4 deletions

View file

@ -4,7 +4,7 @@
"mediawiki/mediawiki-codesniffer": "28.0.0", "mediawiki/mediawiki-codesniffer": "28.0.0",
"jakub-onderka/php-console-highlighter": "0.3.2", "jakub-onderka/php-console-highlighter": "0.3.2",
"mediawiki/minus-x": "0.3.1", "mediawiki/minus-x": "0.3.1",
"mediawiki/mediawiki-phan-config": "0.6.1" "mediawiki/mediawiki-phan-config": "0.8.0"
}, },
"scripts": { "scripts": {
"fix": [ "fix": [

View file

@ -404,9 +404,7 @@ class SpecialInterwiki extends SpecialPage {
$this->getOutput()->addWikiMsg( 'interwiki-legend' ); $this->getOutput()->addWikiMsg( 'interwiki-legend' );
if ( ( !is_array( $iwPrefixes ) || count( $iwPrefixes ) === 0 ) && if ( $iwPrefixes === [] && $iwGlobalPrefixes === [] ) {
( !is_array( $iwGlobalPrefixes ) || count( $iwGlobalPrefixes ) === 0 )
) {
// If the interwiki table(s) are empty, display an error message // If the interwiki table(s) are empty, display an error message
$this->error( 'interwiki_error' ); $this->error( 'interwiki_error' );
return; return;