From ae116da8890c42f3e38254644d5a3b9b88c6b718 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Fri, 26 Jul 2019 16:39:16 +1000 Subject: [PATCH] Code cleanup related to initSpeculativePageId() Change-Id: I5b97c6292a28df6633c573a05c89210b096db5a8 --- includes/parser/ParserOptions.php | 4 ++-- includes/parser/ParserOutput.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 */ -- 2.20.1