Change-Id: I77e7116f81072fa42f580552e7b94323cfe31856
* …
=== Breaking changes in 1.33 ===
+* The parameteter $lang in DifferenceEngine::setTextLanguage must be of type
+ Language. Other types are deprecated since 1.32.
* …
=== Deprecations in 1.33 ===
* @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 );
+ public function setTextLanguage( Language $lang ) {
+ $this->mDiffLang = $lang;
}
/**