Code cleanup related to initSpeculativePageId()
authorTim Starling <tstarling@wikimedia.org>
Fri, 26 Jul 2019 06:39:16 +0000 (16:39 +1000)
committerTim Starling <tstarling@wikimedia.org>
Fri, 26 Jul 2019 06:41:00 +0000 (16:41 +1000)
Change-Id: I5b97c6292a28df6633c573a05c89210b096db5a8

includes/parser/ParserOptions.php
includes/parser/ParserOutput.php

index 69ee1c5..5a159fb 100644 (file)
@@ -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' );
index dbe609a..dcb5444 100644 (file)
@@ -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 */