diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index a95bf52640b..6690287d76c 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -195,7 +195,7 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector { /** * @var array External link URLs, in the key only. */ - private $mExternalLinks = []; + private array $mExternalLinks = []; /** * @var array> 2-D map of prefix/DBK (in keys only) @@ -799,7 +799,7 @@ class ParserOutput extends CacheTime implements ContentMetadataCollector { return $this->mFileSearchOptions; } - public function &getExternalLinks() { + public function &getExternalLinks(): array { return $this->mExternalLinks; }