X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=51ff8d5b1b19488ed2fff9b00b3d1726b970ebf5;hb=f6633d9f46951e57e5c7060953194aeeb7522024;hp=16a6e1a778577558b68eed7b75d0ea8818ae88b4;hpb=cb5acb42ce62b2d600dfb4e11a2982602b670a2f;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index 16a6e1a778..51ff8d5b1b 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -527,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] ); @@ -536,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 ] ); @@ -3237,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; } }