X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fparser%2FParser.php;h=b27338ca2bfc8da6ea7ef273477a04d0035a3561;hp=962313e43e467bcd7c41fc0a351d2bc10221393f;hb=54c93f1d384cd5accd2db2ebbb911e4d627c2980;hpb=75f1fe04a8006df7b8716c4b966b1725d5d4bea1 diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 962313e43e..b27338ca2b 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -4271,7 +4271,6 @@ class Parser { * @param bool $isMain * @return mixed|string * @private - * @suppress PhanTypeInvalidDimOffset */ public function formatHeadings( $text, $origText, $isMain = true ) { # Inhibit editsection links if requested in the page @@ -5578,7 +5577,6 @@ class Parser { Hooks::run( 'ParserMakeImageParams', [ $title, $file, &$params, $this ] ); # Linker does the rest - // @phan-suppress-next-line PhanTypeInvalidDimOffset $time = $options['time'] ?? false; $ret = Linker::makeImageLink( $this, $title, $file, $params['frame'], $params['handler'], $time, $descQuery, $this->mOptions->getThumbSize() ); @@ -6192,7 +6190,9 @@ class Parser { */ private static function normalizeSectionName( $text ) { # T90902: ensure the same normalization is applied for IDs as to links + /** @var MediaWikiTitleCodec $titleParser */ $titleParser = MediaWikiServices::getInstance()->getTitleParser(); + '@phan-var MediaWikiTitleCodec $titleParser'; try { $parts = $titleParser->splitTitleString( "#$text" );