From: Umherirrender Date: Tue, 18 Jun 2019 18:51:01 +0000 (+0200) Subject: Add type hints for class properties in SpecialVersion X-Git-Tag: 1.34.0-rc.0~770^2 X-Git-Url: http://git.cyclocoop.org/data/%7BGarradin/WEBSITE%7D?a=commitdiff_plain;h=8f1023d4eb2ee7a14115d2a4de52b900baf17c2b;p=lhc%2Fweb%2Fwiklou.git Add type hints for class properties in SpecialVersion Change-Id: I53d4c69737eb347f970ab02f200d50aa35101f4f --- diff --git a/includes/specials/SpecialVersion.php b/includes/specials/SpecialVersion.php index 5456ce7861..028d2fe6af 100644 --- a/includes/specials/SpecialVersion.php +++ b/includes/specials/SpecialVersion.php @@ -31,13 +31,20 @@ use MediaWiki\MediaWikiServices; * @ingroup SpecialPage */ class SpecialVersion extends SpecialPage { + + /** + * @var bool + */ protected $firstExtOpened = false; /** - * Stores the current rev id/SHA hash of MediaWiki core + * @var string The current rev id/SHA hash of MediaWiki core */ protected $coreId = ''; + /** + * @var string[]|false Lazy initialized key/value with message content + */ protected static $extensionTypes = false; public function __construct() { @@ -367,7 +374,7 @@ class SpecialVersion extends SpecialPage { * * @since 1.17 * - * @return array + * @return string[] */ public static function getExtensionTypes() { if ( self::$extensionTypes === false ) {