From: Tim Starling Date: Fri, 26 Jul 2019 06:39:16 +0000 (+1000) Subject: Code cleanup related to initSpeculativePageId() X-Git-Tag: 1.34.0-rc.0~867^2 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=ae116da8890c42f3e38254644d5a3b9b88c6b718;p=lhc%2Fweb%2Fwiklou.git Code cleanup related to initSpeculativePageId() Change-Id: I5b97c6292a28df6633c573a05c89210b096db5a8 --- diff --git a/includes/parser/ParserOptions.php b/includes/parser/ParserOptions.php index 69ee1c502e..5a159fba43 100644 --- a/includes/parser/ParserOptions.php +++ b/includes/parser/ParserOptions.php @@ -870,7 +870,7 @@ class ParserOptions { * Callback registered with ParserOptions::$lazyOptions, triggered by getSpeculativeRevId(). * * @param ParserOptions $popt - * @return bool|false + * @return int|false */ private static function initSpeculativeRevId( ParserOptions $popt ) { $cb = $popt->getOption( 'speculativeRevIdCallback' ); @@ -884,7 +884,7 @@ class ParserOptions { * Callback registered with ParserOptions::$lazyOptions, triggered by getSpeculativePageId(). * * @param ParserOptions $popt - * @return bool|false + * @return int|false */ private static function initSpeculativePageId( ParserOptions $popt ) { $cb = $popt->getOption( 'speculativePageIdCallback' ); diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index dbe609a5b7..dcb5444502 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -216,6 +216,7 @@ class ParserOutput extends CacheTime { 'speculativeRevIdUsed', 'revisionTimestampUsed' ]; + /** @var int|null Assumed rev ID for {{REVISIONID}} if no revision is set */ private $speculativeRevIdUsed; /** @var int|null Assumed page ID for {{PAGEID}} if no revision is set */