X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=51ff8d5b1b19488ed2fff9b00b3d1726b970ebf5;hb=c28609ac617d8fc4987338955003fe2c6b687a54;hp=7ee6a65b5af28b192cc3d4a20437b85bfb7d58b8;hpb=a89ff2d168c8360913a343268e22c572b5c50c8c;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 7ee6a65b5a..51ff8d5b1b 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -55,7 +55,7 @@ class Language { const SUPPORTED = 'mwfile'; /** - * @var LanguageConverter + * @var LanguageConverter|FakeConverter */ public $mConverter; @@ -457,7 +457,6 @@ class Language { } function __construct() { - // @phan-suppress-next-line PhanTypeMismatchProperty $this->mConverter = new FakeConverter( $this ); // Set the code to the name of the descendant if ( static::class === 'Language' ) { @@ -528,7 +527,6 @@ class Language { } # Sometimes a language will be localised but not actually exist on this wiki. - // @phan-suppress-next-line PhanTypeMismatchForeach foreach ( $this->namespaceNames as $key => $text ) { if ( !isset( $validNamespaces[$key] ) ) { unset( $this->namespaceNames[$key] ); @@ -537,7 +535,6 @@ class Language { # The above mixing may leave namespaces out of canonical order. # Re-order by namespace ID number... - // @phan-suppress-next-line PhanTypeMismatchArgumentInternal ksort( $this->namespaceNames ); Hooks::run( 'LanguageGetNamespaces', [ &$this->namespaceNames ] ); @@ -3238,7 +3235,6 @@ class Language { $fallbackChain = array_reverse( $fallbackChain ); foreach ( $fallbackChain as $code ) { if ( isset( $newWords[$code] ) ) { - // @phan-suppress-next-line PhanTypeMismatchProperty $this->mMagicExtensions = $newWords[$code] + $this->mMagicExtensions; } }