build: Updating mediawiki/mediawiki-phan-config to 0.5.0

Change-Id: I7d94649c26fda91cf8072c9530ca8e59f42f8b9a
This commit is contained in:
libraryupgrader 2019-03-11 03:22:21 +00:00 committed by Kunal Mehta
parent 7009da69fa
commit 75000f5154
3 changed files with 4 additions and 7 deletions

View file

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

View file

@ -51,9 +51,7 @@ class ApiQueryPageImages extends ApiQueryBase {
// in #execute, so include the set of missing filespace pages,
// which were initially rejected in ApiPageSet#execute.
$missingTitles = $pageSet->getMissingTitlesByNamespace();
$missingFileTitles = isset( $missingTitles[NS_FILE] )
? $missingTitles[NS_FILE]
: [];
$missingFileTitles = $missingTitles[NS_FILE] ?? [];
// $titles is a map of ID to title object, which is ideal,
// whereas $missingFileTitles is a map of title text to ID.

View file

@ -149,9 +149,8 @@ class ParserFileProcessingHookHandlers {
|| isset( $params['frame']['thumb'] )
|| isset( $params['frame']['frameless'] )
) {
$params['handler']['width'] = isset( $wgThumbLimits[$wgDefaultUserOptions['thumbsize']] )
? $wgThumbLimits[$wgDefaultUserOptions['thumbsize']]
: 250;
$params['handler']['width'] = $wgThumbLimits[$wgDefaultUserOptions['thumbsize']]
?? 250;
} else {
$params['handler']['width'] = $file->getWidth();
}