mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateData
synced 2024-12-11 07:26: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",
|
"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.2",
|
"mediawiki/minus-x": "0.3.2",
|
||||||
"mediawiki/mediawiki-phan-config": "0.8.0"
|
"mediawiki/mediawiki-phan-config": "0.9.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": [
|
"test": [
|
||||||
|
|
|
@ -164,6 +164,7 @@ class TemplateDataBlob {
|
||||||
if ( !is_object( $data->description ) && !is_string( $data->description ) ) {
|
if ( !is_object( $data->description ) && !is_string( $data->description ) ) {
|
||||||
return Status::newFatal( 'templatedata-invalid-type', 'description', 'string|object' );
|
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 );
|
$data->description = self::normaliseInterfaceText( $data->description );
|
||||||
} else {
|
} else {
|
||||||
$data->description = null;
|
$data->description = null;
|
||||||
|
@ -171,6 +172,7 @@ class TemplateDataBlob {
|
||||||
|
|
||||||
// Root.format
|
// Root.format
|
||||||
if ( isset( $data->format ) && $data->format !== null ) {
|
if ( isset( $data->format ) && $data->format !== null ) {
|
||||||
|
// @phan-suppress-next-line PhanTypeMismatchDimFetchNullable isset makes this non-null
|
||||||
$f = self::$formats[$data->format] ?? $data->format;
|
$f = self::$formats[$data->format] ?? $data->format;
|
||||||
if (
|
if (
|
||||||
!is_string( $f ) ||
|
!is_string( $f ) ||
|
||||||
|
|
Loading…
Reference in a new issue