X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fparser%2FParserOutput.php;h=aa015a6eb16651422d6fa3f0dc8462c997703f7c;hb=478a58f63101f2b47d18a618296b5e7970fa3f24;hp=8f0a1d7cc9fdee8ce6b7e25df035ca71beab29ad;hpb=9f026c24ec2f1e2b4374c77b42b6547f55848872;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 8f0a1d7cc9..aa015a6eb1 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -177,7 +177,7 @@ class ParserOutput extends CacheTime { private $mIndexPolicy = ''; /** - * @var array $mAccessedOptions List of ParserOptions (stored in the keys). + * @var true[] $mAccessedOptions List of ParserOptions (stored in the keys). */ private $mAccessedOptions = []; @@ -685,9 +685,8 @@ class ParserOutput extends CacheTime { /** * Register a file dependency for this output * @param string $name Title dbKey - * @param string $timestamp MW timestamp of file creation (or false if non-existing) - * @param string $sha1 Base 36 SHA-1 of file (or false if non-existing) - * @return void + * @param string|false|null $timestamp MW timestamp of file creation (or false if non-existing) + * @param string|false|null $sha1 Base 36 SHA-1 of file (or false if non-existing) */ public function addImage( $name, $timestamp = null, $sha1 = null ) { $this->mImages[$name] = 1; @@ -701,7 +700,6 @@ class ParserOutput extends CacheTime { * @param Title $title * @param int $page_id * @param int $rev_id - * @return void */ public function addTemplate( $title, $page_id, $rev_id ) { $ns = $title->getNamespace(); @@ -746,14 +744,24 @@ class ParserOutput extends CacheTime { } } + /** + * @see OutputPage::addModules + */ public function addModules( $modules ) { $this->mModules = array_merge( $this->mModules, (array)$modules ); } + /** + * @deprecated since 1.31 Use addModules() instead. + * @see OutputPage::addModuleScripts + */ public function addModuleScripts( $modules ) { $this->mModuleScripts = array_merge( $this->mModuleScripts, (array)$modules ); } + /** + * @see OutputPage::addModuleStyles + */ public function addModuleStyles( $modules ) { $this->mModuleStyles = array_merge( $this->mModuleStyles, (array)$modules ); } @@ -968,8 +976,8 @@ class ParserOutput extends CacheTime { /** * Returns the options from its ParserOptions which have been taken - * into account to produce this output or false if not available. - * @return array + * into account to produce this output. + * @return string[] */ public function getUsedOptions() { if ( !isset( $this->mAccessedOptions ) ) {