diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2025-01-10 00:55:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2025-01-10 00:55:13 +0000 |
commit | c64987a2b77740fdf9a0903d05b0f354ff6a8d28 (patch) | |
tree | 4f1d17280c439090df76c5726ef0e80f8efeb207 /includes/parser | |
parent | 8ce0a476897c46c9821692d1c25fdf2982105803 (diff) | |
parent | 62fbd7ccea8ca3e9cb7ee238c8229053bf4ffd30 (diff) | |
download | mediawikicore-c64987a2b77740fdf9a0903d05b0f354ff6a8d28.tar.gz mediawikicore-c64987a2b77740fdf9a0903d05b0f354ff6a8d28.zip |
Merge "build: Upgrade mediawiki/mediawiki-phan-config from 0.14.0 to 0.15.0"
Diffstat (limited to 'includes/parser')
-rw-r--r-- | includes/parser/PPFrame_Hash.php | 1 | ||||
-rw-r--r-- | includes/parser/Parser.php | 1 | ||||
-rw-r--r-- | includes/parser/ParserOutput.php | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/includes/parser/PPFrame_Hash.php b/includes/parser/PPFrame_Hash.php index 2e9f2b7f2cc0..8e51594f9dee 100644 --- a/includes/parser/PPFrame_Hash.php +++ b/includes/parser/PPFrame_Hash.php @@ -329,6 +329,7 @@ class PPFrame_Hash implements Stringable, PPFrame { # OT_WIKI will only respect <ignore> in substed templates. # The other output types respect it unless NO_IGNORE is set. # extractSections() sets NO_IGNORE and so never respects it. + // @phan-suppress-next-line MediaWikiNoIssetIfDefined if ( ( !isset( $this->parent ) && $this->parser->getOutputType() === Parser::OT_WIKI ) || ( $flags & PPFrame::NO_IGNORE ) ) { diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index d7cf45d8c853..d7562dd5e412 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -2175,7 +2175,6 @@ class Parser { */ private function handleExternalLinks( $text ) { $bits = preg_split( $this->mExtLinkBracketedRegex, $text, -1, PREG_SPLIT_DELIM_CAPTURE ); - // @phan-suppress-next-line PhanTypeComparisonFromArray See phan issue #3161 if ( $bits === false ) { throw new RuntimeException( "PCRE failure" ); } diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 0ba3a375107c..324bc1272052 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -1893,6 +1893,7 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector { * @since 1.38 */ public function getPageProperties(): array { + // @phan-suppress-next-line MediaWikiNoIssetIfDefined if ( !isset( $this->mProperties ) ) { $this->mProperties = []; } |