to use it.
* WatchAction::getUnwatchToken is deprecated. Use WatchAction::getWatchToken
with the 'unwatch' action parameter instead.
+* IcuCollation::getICUVersion() is deprecated, as you can just use the PHP
+ constant INTL_ICU_VERSION directly in all versions that MediaWiki supports.
=== Other changes in 1.32 ===
* Soft hyphens (U+00AD) are now automatically removed from titles; these
static::class,
$this->locale,
$this->digitTransformLanguage->getCode(),
- self::getICUVersion(),
+ INTL_ICU_VERSION,
self::FIRST_LETTER_VERSION
);
$this->firstLetterData = $cache->getWithSetCallback( $cacheKey, $cache::TTL_WEEK, function () {
* can't be determined.
*
* The constant INTL_ICU_VERSION this function refers to isn't really
- * documented. It is available since PHP 5.3.7 (see PHP 54561
- * https://bugs.php.net/bug.php?id=54561). This function will return
- * false on older PHPs.
- *
- * TODO: Remove the backwards-compatibility as MediaWiki now requires
- * higher levels of PHP.
+ * documented, but see https://bugs.php.net/bug.php?id=54561.
*
* @since 1.21
- * @return string|bool
+ * @deprecated since 1.32, use INTL_ICU_VERSION directly
+ * @return string
*/
static function getICUVersion() {
- return defined( 'INTL_ICU_VERSION' ) ? INTL_ICU_VERSION : false;
+ return INTL_ICU_VERSION;
}
/**
* @return string|bool
*/
static function getUnicodeVersionForICU() {
- $icuVersion = self::getICUVersion();
+ $icuVersion = INTL_ICU_VERSION;
if ( !$icuVersion ) {
return false;
}