Remove type hints which are not supported by PHP 7.0
ULS currently supports MediaWiki 1.32+ which supports PHP 7.0+. This change can reverted when the minimum required MediaWiki version is 1.34+. Change-Id: I8115c4ae74c8aa91899899b1fb304ccbf1066ad8
This commit is contained in:
@@ -146,7 +146,7 @@ class UniversalLanguageSelectorHooks {
|
||||
* @param OutputPage $out
|
||||
* @return void
|
||||
*/
|
||||
protected static function handleSetLang( OutputPage $out ): void {
|
||||
protected static function handleSetLang( OutputPage $out ) {
|
||||
$languageToSet = self::getSetLang( $out );
|
||||
|
||||
if ( !$languageToSet ) {
|
||||
@@ -476,7 +476,7 @@ class UniversalLanguageSelectorHooks {
|
||||
}
|
||||
}
|
||||
|
||||
private static function getSetLang( OutputPage $out ): ?string {
|
||||
private static function getSetLang( OutputPage $out ) {
|
||||
$setLangCode = $out->getRequest()->getText( 'setlang' );
|
||||
if ( $setLangCode && Language::isSupportedLanguage( $setLangCode ) ) {
|
||||
return $setLangCode;
|
||||
|
||||
Reference in New Issue
Block a user