mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-01 02:46:15 +00:00
Merge "build: Updating mediawiki/mediawiki-phan-config to 0.9.0"
This commit is contained in:
commit
f60b457884
|
@ -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": [
|
||||
|
|
|
@ -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 ) ||
|
||||
|
|
Loading…
Reference in a new issue