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:
Fomafix
2019-12-19 17:36:32 +01:00
parent ff02e63a45
commit 8eb162020f

View File

@@ -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;