X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FParserOutput.php;h=2dd4085e941168c09c8def443e5757e27ad2c808;hb=69f16b7a69f9491b695ba0c9dfab7a7bdcb591d7;hp=7de3b304f1d420d6ef8d1ff950f4731eab92e803;hpb=eb72adcb4e28eedc1806d845355856bd6f97dadb;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php index 7de3b304f1..2dd4085e94 100644 --- a/includes/parser/ParserOutput.php +++ b/includes/parser/ParserOutput.php @@ -211,10 +211,10 @@ class ParserOutput extends CacheTime { */ private $mFlags = []; - /** @var integer|null Assumed rev ID for {{REVISIONID}} if no revision is set */ + /** @var int|null Assumed rev ID for {{REVISIONID}} if no revision is set */ private $mSpeculativeRevId; - /** @var integer Upper bound of expiry based on parse duration */ + /** @var int Upper bound of expiry based on parse duration */ private $mMaxAdaptiveExpiry = INF; const EDITSECTION_REGEX = @@ -253,7 +253,7 @@ class ParserOutput extends CacheTime { $text = $this->mText; if ( $this->mEditSectionTokens ) { $text = preg_replace_callback( - ParserOutput::EDITSECTION_REGEX, + self::EDITSECTION_REGEX, function ( $m ) { global $wgOut, $wgLang; $editsectionPage = Title::newFromText( htmlspecialchars_decode( $m[1] ) ); @@ -274,7 +274,7 @@ class ParserOutput extends CacheTime { $text ); } else { - $text = preg_replace( ParserOutput::EDITSECTION_REGEX, '', $text ); + $text = preg_replace( self::EDITSECTION_REGEX, '', $text ); } // If you have an old cached version of this class - sorry, you can't disable the TOC @@ -291,7 +291,7 @@ class ParserOutput extends CacheTime { } /** - * @param integer $id + * @param int $id * @since 1.28 */ public function setSpeculativeRevIdUsed( $id ) { @@ -708,7 +708,7 @@ class ParserOutput extends CacheTime { * @since 1.25 */ public function addTrackingCategory( $msg, $title ) { - if ( $title->getNamespace() === NS_SPECIAL ) { + if ( $title->isSpecialPage() ) { wfDebug( __METHOD__ . ": Not adding tracking category $msg to special page!\n" ); return false; } @@ -1075,7 +1075,7 @@ class ParserOutput extends CacheTime { /** * Lower the runtime adaptive TTL to at most this value * - * @param integer $ttl + * @param int $ttl * @since 1.28 */ public function updateRuntimeAdaptiveExpiry( $ttl ) {