Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0"

This commit is contained in:
jenkins-bot 2019-12-29 13:59:32 +00:00 committed by Gerrit Code Review
commit f60b457884
2 changed files with 3 additions and 1 deletions

View file

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

View file

@ -164,6 +164,7 @@ class TemplateDataBlob {
if ( !is_object( $data->description ) && !is_string( $data->description ) ) {
return Status::newFatal( 'templatedata-invalid-type', 'description', 'string|object' );
}
// @phan-suppress-next-line PhanTypeMismatchArgument isset makes this non-null
$data->description = self::normaliseInterfaceText( $data->description );
} else {
$data->description = null;
@ -171,6 +172,7 @@ class TemplateDataBlob {
// Root.format
if ( isset( $data->format ) && $data->format !== null ) {
// @phan-suppress-next-line PhanTypeMismatchDimFetchNullable isset makes this non-null
$f = self::$formats[$data->format] ?? $data->format;
if (
!is_string( $f ) ||