Also move the comment about the default value from the setter to the
getter.
Change-Id: I2e1bd29db986dfa92d41a876340a6aa59ac6670d
Depends-On: I8b573866c2de9b21d3849f02269c1b9ca4f62aba
* The 'jquery.hidpi' module (polyfill for IMG srcset) is deprecated.
* ResourceLoaderStartUpModule::getStartupModules() and ::getLegacyModules()
are deprecated. These concepts are obsolete and have no replacement.
+* String type for $lang of DifferenceEngine::setTextLanguage is deprecated.
=== Other changes in 1.32 ===
* …
}
/**
+ * Get the language of the difference engine, defaults to page content language
+ *
* @return Language
*/
public function getDiffLang() {
/**
* Set the language in which the diff text is written
- * (Defaults to page content language).
- * @param Language|string $lang
+ *
+ * @param Language $lang
* @since 1.19
*/
public function setTextLanguage( $lang ) {
+ if ( !$lang instanceof Language ) {
+ wfDeprecated( __METHOD__ . ' with other type than Language for $lang', '1.32' );
+ }
$this->mDiffLang = wfGetLangObj( $lang );
}