Use ::class for class name resolution

Available since php5.5

Change-Id: Ie71b7f9d289a34532f6e3e1f32ac25bf08b9903f
This commit is contained in:
Umherirrender
2019-03-02 20:11:12 +01:00
parent 1ab40133d6
commit 03bc19fab2
3 changed files with 3 additions and 3 deletions

View File

@@ -69,7 +69,7 @@ class UniversalLanguageSelectorHooks {
if ( $wgULSCompactLanguageLinksBetaFeature === true &&
$wgInterwikiMagic === true &&
$wgHideInterlanguageLinks === false &&
class_exists( 'BetaFeatures' ) &&
class_exists( BetaFeatures::class ) &&
BetaFeatures::isFeatureEnabled( $user, 'uls-compact-links' )
) {
// Compact language links is a beta feature in this wiki. Check the user's

View File

@@ -156,5 +156,5 @@ PHP;
}
}
$maintClass = 'LanguageNameIndexer';
$maintClass = LanguageNameIndexer::class;
require_once RUN_MAINTENANCE_IF_MAIN;

View File

@@ -117,5 +117,5 @@ class ULSCompactLinksDisablePref extends Maintenance {
}
}
$maintClass = "ULSCompactLinksDisablePref";
$maintClass = ULSCompactLinksDisablePref::class;
require_once RUN_MAINTENANCE_IF_MAIN;