Mailing List Archive

[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Use ::class to resolve class names in maintenance scripts
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/404061 )

Change subject: Use ::class to resolve class names in maintenance scripts
......................................................................


Use ::class to resolve class names in maintenance scripts

This helps to find renamed or misspelled classes earlier.
Phan will check the class names

Change-Id: I1d4567f47f93eb1436cb98558388e48d35258666
---
M maintenance/7zip.inc
M maintenance/Maintenance.php
M maintenance/addRFCandPMIDInterwiki.php
M maintenance/addSite.php
M maintenance/attachLatest.php
M maintenance/backup.inc
M maintenance/benchmarks/bench_HTTP_HTTPS.php
M maintenance/benchmarks/bench_Wikimedia_base_convert.php
M maintenance/benchmarks/bench_delete_truncate.php
M maintenance/benchmarks/bench_if_switch.php
M maintenance/benchmarks/bench_strtr_str_replace.php
M maintenance/benchmarks/bench_utf8_title_check.php
M maintenance/benchmarks/bench_wfIsWindows.php
M maintenance/benchmarks/benchmarkCSSMin.php
M maintenance/benchmarks/benchmarkHooks.php
M maintenance/benchmarks/benchmarkJSMinPlus.php
M maintenance/benchmarks/benchmarkParse.php
M maintenance/benchmarks/benchmarkPurge.php
M maintenance/benchmarks/benchmarkTidy.php
M maintenance/changePassword.php
M maintenance/checkBadRedirects.php
M maintenance/checkComposerLockUpToDate.php
M maintenance/checkImages.php
M maintenance/checkLess.php
M maintenance/checkUsernames.php
M maintenance/cleanupAncientTables.php
M maintenance/cleanupBlocks.php
M maintenance/cleanupCaps.php
M maintenance/cleanupEmptyCategories.php
M maintenance/cleanupImages.php
M maintenance/cleanupInvalidDbKeys.php
M maintenance/cleanupPreferences.php
M maintenance/cleanupRemovedModules.php
M maintenance/cleanupSpam.php
M maintenance/cleanupTitles.php
M maintenance/cleanupUploadStash.php
M maintenance/cleanupUsersWithNoId.php
M maintenance/cleanupWatchlist.php
M maintenance/clearInterwikiCache.php
M maintenance/commandLine.inc
M maintenance/compareParserCache.php
M maintenance/compareParsers.php
M maintenance/convertExtensionToRegistration.php
M maintenance/convertLinks.php
M maintenance/convertUserOptions.php
M maintenance/copyFileBackend.php
M maintenance/copyJobQueue.php
M maintenance/createAndPromote.php
M maintenance/createCommonPasswordCdb.php
M maintenance/deleteArchivedFiles.php
M maintenance/deleteArchivedRevisions.php
M maintenance/deleteBatch.php
M maintenance/deleteDefaultMessages.php
M maintenance/deleteEqualMessages.php
M maintenance/deleteOldRevisions.php
M maintenance/deleteOrphanedRevisions.php
M maintenance/deleteSelfExternals.php
M maintenance/doMaintenance.php
M maintenance/dumpBackup.php
M maintenance/dumpCategoriesAsRdf.php
M maintenance/dumpIterator.php
M maintenance/dumpLinks.php
M maintenance/dumpTextPass.php
M maintenance/dumpUploads.php
M maintenance/edit.php
M maintenance/eraseArchivedFile.php
M maintenance/exportSites.php
M maintenance/fetchText.php
M maintenance/fileOpPerfTest.php
M maintenance/findDeprecated.php
M maintenance/findHooks.php
M maintenance/findMissingFiles.php
M maintenance/findOrphanedFiles.php
M maintenance/fixDefaultJsonContentPages.php
M maintenance/fixDoubleRedirects.php
M maintenance/fixExtLinksProtocolRelative.php
M maintenance/fixTimestamps.php
M maintenance/fixUserRegistration.php
M maintenance/formatInstallDoc.php
M maintenance/generateJsonI18n.php
M maintenance/generateSitemap.php
M maintenance/getConfiguration.php
M maintenance/getLagTimes.php
M maintenance/getReplicaServer.php
M maintenance/getText.php
M maintenance/hhvm/makeRepo.php
M maintenance/hhvm/run-server
M maintenance/importDump.php
M maintenance/importImages.php
M maintenance/importSiteScripts.php
M maintenance/importSites.php
M maintenance/importTextFiles.php
M maintenance/initEditCount.php
M maintenance/initSiteStats.php
M maintenance/initUserPreference.php
M maintenance/install.php
M maintenance/invalidateUserSessions.php
M maintenance/jsparse.php
M maintenance/lag.php
M maintenance/language/alltrans.php
M maintenance/language/date-formats.php
M maintenance/language/digit2html.php
M maintenance/language/dumpMessages.php
M maintenance/language/generateCollationData.php
M maintenance/language/generateNormalizerDataAr.php
M maintenance/language/generateNormalizerDataMl.php
M maintenance/language/langmemusage.php
M maintenance/language/listVariants.php
M maintenance/makeTestEdits.php
M maintenance/manageJobs.php
M maintenance/mctest.php
M maintenance/mergeMessageFileList.php
M maintenance/migrateArchiveText.php
M maintenance/migrateComments.php
M maintenance/migrateFileRepoLayout.php
M maintenance/migrateUserGroup.php
M maintenance/minify.php
M maintenance/moveBatch.php
M maintenance/mwdocgen.php
M maintenance/namespaceDupes.php
M maintenance/nukeNS.php
M maintenance/nukePage.php
M maintenance/oracle/alterSharedConstraints.php
M maintenance/orphans.php
M maintenance/pageExists.php
M maintenance/parse.php
M maintenance/patchSql.php
M maintenance/populateBacklinkNamespace.php
M maintenance/populateCategory.php
M maintenance/populateContentModel.php
M maintenance/populateFilearchiveSha1.php
M maintenance/populateImageSha1.php
M maintenance/populateIpChanges.php
M maintenance/populateLogSearch.php
M maintenance/populateLogUsertext.php
M maintenance/populatePPSortKey.php
M maintenance/populateParentId.php
M maintenance/populateRecentChangesSource.php
M maintenance/populateRevisionLength.php
M maintenance/populateRevisionSha1.php
M maintenance/preprocessDump.php
M maintenance/protect.php
M maintenance/pruneFileCache.php
M maintenance/purgeChangedFiles.php
M maintenance/purgeChangedPages.php
M maintenance/purgeExpiredUserrights.php
M maintenance/purgeList.php
M maintenance/purgeModuleDeps.php
M maintenance/purgeOldText.php
M maintenance/purgePage.php
M maintenance/purgeParserCache.php
M maintenance/reassignEdits.php
M maintenance/rebuildFileCache.php
M maintenance/rebuildImages.php
M maintenance/rebuildLocalisationCache.php
M maintenance/rebuildSitesCache.php
M maintenance/rebuildall.php
M maintenance/rebuildmessages.php
M maintenance/rebuildrecentchanges.php
M maintenance/rebuildtextindex.php
M maintenance/recountCategories.php
M maintenance/refreshFileHeaders.php
M maintenance/refreshImageMetadata.php
M maintenance/refreshLinks.php
M maintenance/removeInvalidEmails.php
M maintenance/removeUnusedAccounts.php
M maintenance/renameDbPrefix.php
M maintenance/renderDump.php
M maintenance/resetUserEmail.php
M maintenance/resetUserTokens.php
M maintenance/rollbackEdits.php
M maintenance/runBatchedQuery.php
M maintenance/runJobs.php
M maintenance/shell.php
M maintenance/showJobs.php
M maintenance/showSiteStats.php
M maintenance/sql.php
M maintenance/sqlite.php
M maintenance/storage/compressOld.php
M maintenance/storage/dumpRev.php
M maintenance/storage/fixT22757.php
M maintenance/storage/orphanStats.php
M maintenance/storage/recompressTracked.php
M maintenance/storage/storageTypeStats.php
M maintenance/storage/testCompression.php
M maintenance/syncFileBackend.php
M maintenance/tidyUpBug37714.php
M maintenance/undelete.php
M maintenance/update.php
M maintenance/updateArticleCount.php
M maintenance/updateCollation.php
M maintenance/updateDoubleWidthSearch.php
M maintenance/updateExtensionJsonSchema.php
M maintenance/updateRestrictions.php
M maintenance/updateSearchIndex.php
M maintenance/updateSpecialPages.php
M maintenance/userOptions.php
M maintenance/validateRegistrationFile.php
M maintenance/view.php
M maintenance/wrapOldPasswords.php
200 files changed, 221 insertions(+), 221 deletions(-)

Approvals:
Krinkle: Looks good to me, approved
jenkins-bot: Verified
Thiemo Kreuz (WMDE): Looks good to me, but someone else must approve



diff --git a/maintenance/7zip.inc b/maintenance/7zip.inc
index 751a131..9c1093b 100644
--- a/maintenance/7zip.inc
+++ b/maintenance/7zip.inc
@@ -93,4 +93,4 @@
}
}

-stream_wrapper_register( 'mediawiki.compress.7z', 'SevenZipStream' );
+stream_wrapper_register( 'mediawiki.compress.7z', SevenZipStream::class );
diff --git a/maintenance/Maintenance.php b/maintenance/Maintenance.php
index 861a613..5adbee5 100644
--- a/maintenance/Maintenance.php
+++ b/maintenance/Maintenance.php
@@ -182,7 +182,7 @@
if ( $count < 2 ) {
return false; // sanity
}
- if ( $bt[0]['class'] !== 'Maintenance' || $bt[0]['function'] !== 'shouldExecute' ) {
+ if ( $bt[0]['class'] !== self::class || $bt[0]['function'] !== 'shouldExecute' ) {
return false; // last call should be to this function
}
$includeFuncs = [ 'require_once', 'require', 'include', 'include_once' ];
diff --git a/maintenance/addRFCandPMIDInterwiki.php b/maintenance/addRFCandPMIDInterwiki.php
index b21bfbb..409afb5 100644
--- a/maintenance/addRFCandPMIDInterwiki.php
+++ b/maintenance/addRFCandPMIDInterwiki.php
@@ -91,5 +91,5 @@
}
}

-$maintClass = 'AddRFCAndPMIDInterwiki';
+$maintClass = AddRFCAndPMIDInterwiki::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/addSite.php b/maintenance/addSite.php
index 04158ae..4953343 100644
--- a/maintenance/addSite.php
+++ b/maintenance/addSite.php
@@ -88,5 +88,5 @@
}
}

-$maintClass = 'AddSite';
+$maintClass = AddSite::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/attachLatest.php b/maintenance/attachLatest.php
index 36060d8..897972c 100644
--- a/maintenance/attachLatest.php
+++ b/maintenance/attachLatest.php
@@ -88,5 +88,5 @@
}
}

-$maintClass = "AttachLatest";
+$maintClass = AttachLatest::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/backup.inc b/maintenance/backup.inc
index 00dbd00..ffc75c6 100644
--- a/maintenance/backup.inc
+++ b/maintenance/backup.inc
@@ -82,15 +82,15 @@
$this->stderr = fopen( "php://stderr", "wt" );

// Built-in output and filter plugins
- $this->registerOutput( 'file', 'DumpFileOutput' );
- $this->registerOutput( 'gzip', 'DumpGZipOutput' );
- $this->registerOutput( 'bzip2', 'DumpBZip2Output' );
- $this->registerOutput( 'dbzip2', 'DumpDBZip2Output' );
- $this->registerOutput( '7zip', 'Dump7ZipOutput' );
+ $this->registerOutput( 'file', DumpFileOutput::class );
+ $this->registerOutput( 'gzip', DumpGZipOutput::class );
+ $this->registerOutput( 'bzip2', DumpBZip2Output::class );
+ $this->registerOutput( 'dbzip2', DumpDBZip2Output::class );
+ $this->registerOutput( '7zip', Dump7ZipOutput::class );

- $this->registerFilter( 'latest', 'DumpLatestFilter' );
- $this->registerFilter( 'notalk', 'DumpNotalkFilter' );
- $this->registerFilter( 'namespace', 'DumpNamespaceFilter' );
+ $this->registerFilter( 'latest', DumpLatestFilter::class );
+ $this->registerFilter( 'notalk', DumpNotalkFilter::class );
+ $this->registerFilter( 'namespace', DumpNamespaceFilter::class );

// These three can be specified multiple times
$this->addOption( 'plugin', 'Load a dump plugin class. Specify as <class>[:<file>].',
diff --git a/maintenance/benchmarks/bench_HTTP_HTTPS.php b/maintenance/benchmarks/bench_HTTP_HTTPS.php
index 0e3cd73..5e1feb7 100644
--- a/maintenance/benchmarks/bench_HTTP_HTTPS.php
+++ b/maintenance/benchmarks/bench_HTTP_HTTPS.php
@@ -59,5 +59,5 @@
}
}

-$maintClass = 'BenchHttpHttps';
+$maintClass = BenchHttpHttps::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_Wikimedia_base_convert.php b/maintenance/benchmarks/bench_Wikimedia_base_convert.php
index 86bcc8a3..f9b3a74 100644
--- a/maintenance/benchmarks/bench_Wikimedia_base_convert.php
+++ b/maintenance/benchmarks/bench_Wikimedia_base_convert.php
@@ -73,5 +73,5 @@
}
}

-$maintClass = 'BenchWikimediaBaseConvert';
+$maintClass = BenchWikimediaBaseConvert::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_delete_truncate.php b/maintenance/benchmarks/bench_delete_truncate.php
index 0a999ec..794b743 100644
--- a/maintenance/benchmarks/bench_delete_truncate.php
+++ b/maintenance/benchmarks/bench_delete_truncate.php
@@ -101,5 +101,5 @@
}
}

-$maintClass = 'BenchmarkDeleteTruncate';
+$maintClass = BenchmarkDeleteTruncate::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_if_switch.php b/maintenance/benchmarks/bench_if_switch.php
index 843ef7c..5f661f2 100644
--- a/maintenance/benchmarks/bench_if_switch.php
+++ b/maintenance/benchmarks/bench_if_switch.php
@@ -106,5 +106,5 @@
}
}

-$maintClass = 'BenchIfSwitch';
+$maintClass = BenchIfSwitch::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_strtr_str_replace.php b/maintenance/benchmarks/bench_strtr_str_replace.php
index 55c7159..2c065f6 100644
--- a/maintenance/benchmarks/bench_strtr_str_replace.php
+++ b/maintenance/benchmarks/bench_strtr_str_replace.php
@@ -70,5 +70,5 @@
}
}

-$maintClass = 'BenchStrtrStrReplace';
+$maintClass = BenchStrtrStrReplace::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_utf8_title_check.php b/maintenance/benchmarks/bench_utf8_title_check.php
index 52b00f1..b13b863 100644
--- a/maintenance/benchmarks/bench_utf8_title_check.php
+++ b/maintenance/benchmarks/bench_utf8_title_check.php
@@ -110,5 +110,5 @@
}
}

-$maintClass = 'BenchUtf8TitleCheck';
+$maintClass = BenchUtf8TitleCheck::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/bench_wfIsWindows.php b/maintenance/benchmarks/bench_wfIsWindows.php
index 960ef0e..6943182 100644
--- a/maintenance/benchmarks/bench_wfIsWindows.php
+++ b/maintenance/benchmarks/bench_wfIsWindows.php
@@ -64,5 +64,5 @@
}
}

-$maintClass = 'BenchWfIsWindows';
+$maintClass = BenchWfIsWindows::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkCSSMin.php b/maintenance/benchmarks/benchmarkCSSMin.php
index 3eaa88d..a7d998d 100644
--- a/maintenance/benchmarks/benchmarkCSSMin.php
+++ b/maintenance/benchmarks/benchmarkCSSMin.php
@@ -52,11 +52,11 @@

$this->bench( [
"minify ($filename)" => [
- 'function' => [ 'CSSMin', 'minify' ],
+ 'function' => [ CSSMin::class, 'minify' ],
'args' => [ $css ]
],
"remap ($filename)" => [
- 'function' => [ 'CSSMin', 'remap' ],
+ 'function' => [ CSSMin::class, 'remap' ],
'args' => [ $css, dirname( $file ), 'https://example.org/test/', true ]
],
] );
@@ -72,5 +72,5 @@
}
}

-$maintClass = 'BenchmarkCSSMin';
+$maintClass = BenchmarkCSSMin::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkHooks.php b/maintenance/benchmarks/benchmarkHooks.php
index d49fa1d..0bfe039 100644
--- a/maintenance/benchmarks/benchmarkHooks.php
+++ b/maintenance/benchmarks/benchmarkHooks.php
@@ -69,5 +69,5 @@
}
}

-$maintClass = 'BenchmarkHooks';
+$maintClass = BenchmarkHooks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkJSMinPlus.php b/maintenance/benchmarks/benchmarkJSMinPlus.php
index fa93f23..fd66b3f 100644
--- a/maintenance/benchmarks/benchmarkJSMinPlus.php
+++ b/maintenance/benchmarks/benchmarkJSMinPlus.php
@@ -58,5 +58,5 @@
}
}

-$maintClass = 'BenchmarkJSMinPlus';
+$maintClass = BenchmarkJSMinPlus::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkParse.php b/maintenance/benchmarks/benchmarkParse.php
index a613f96..3a79ad3 100644
--- a/maintenance/benchmarks/benchmarkParse.php
+++ b/maintenance/benchmarks/benchmarkParse.php
@@ -188,5 +188,5 @@
}
}

-$maintClass = 'BenchmarkParse';
+$maintClass = BenchmarkParse::class;
require RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkPurge.php b/maintenance/benchmarks/benchmarkPurge.php
index 8566c0b..cbab677 100644
--- a/maintenance/benchmarks/benchmarkPurge.php
+++ b/maintenance/benchmarks/benchmarkPurge.php
@@ -114,5 +114,5 @@
}
}

-$maintClass = "BenchmarkPurge";
+$maintClass = BenchmarkPurge::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/benchmarks/benchmarkTidy.php b/maintenance/benchmarks/benchmarkTidy.php
index 6698db3..f2939b3 100644
--- a/maintenance/benchmarks/benchmarkTidy.php
+++ b/maintenance/benchmarks/benchmarkTidy.php
@@ -74,5 +74,5 @@
}
}

-$maintClass = 'BenchmarkTidy';
+$maintClass = BenchmarkTidy::class;
require RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/changePassword.php b/maintenance/changePassword.php
index d7db321..316004b 100644
--- a/maintenance/changePassword.php
+++ b/maintenance/changePassword.php
@@ -69,5 +69,5 @@
}
}

-$maintClass = "ChangePassword";
+$maintClass = ChangePassword::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/checkBadRedirects.php b/maintenance/checkBadRedirects.php
index 6eafc96..b22432a 100644
--- a/maintenance/checkBadRedirects.php
+++ b/maintenance/checkBadRedirects.php
@@ -60,5 +60,5 @@
}
}

-$maintClass = "CheckBadRedirects";
+$maintClass = CheckBadRedirects::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/checkComposerLockUpToDate.php b/maintenance/checkComposerLockUpToDate.php
index 22f5969..69f16f5 100644
--- a/maintenance/checkComposerLockUpToDate.php
+++ b/maintenance/checkComposerLockUpToDate.php
@@ -61,5 +61,5 @@
}
}

-$maintClass = 'CheckComposerLockUpToDate';
+$maintClass = CheckComposerLockUpToDate::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/checkImages.php b/maintenance/checkImages.php
index 6fe15fb..f858f03 100644
--- a/maintenance/checkImages.php
+++ b/maintenance/checkImages.php
@@ -82,5 +82,5 @@
}
}

-$maintClass = "CheckImages";
+$maintClass = CheckImages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/checkLess.php b/maintenance/checkLess.php
index 8416c8a..f001236 100644
--- a/maintenance/checkLess.php
+++ b/maintenance/checkLess.php
@@ -62,5 +62,5 @@
}
}

-$maintClass = 'CheckLess';
+$maintClass = CheckLess::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/checkUsernames.php b/maintenance/checkUsernames.php
index f29f836..6c1343a 100644
--- a/maintenance/checkUsernames.php
+++ b/maintenance/checkUsernames.php
@@ -65,5 +65,5 @@
}
}

-$maintClass = "CheckUsernames";
+$maintClass = CheckUsernames::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupAncientTables.php b/maintenance/cleanupAncientTables.php
index add967a..bcf4af2 100644
--- a/maintenance/cleanupAncientTables.php
+++ b/maintenance/cleanupAncientTables.php
@@ -110,5 +110,5 @@
}
}

-$maintClass = "CleanupAncientTables";
+$maintClass = CleanupAncientTables::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupBlocks.php b/maintenance/cleanupBlocks.php
index 41d492d..cbf0084 100644
--- a/maintenance/cleanupBlocks.php
+++ b/maintenance/cleanupBlocks.php
@@ -148,5 +148,5 @@
}
}

-$maintClass = "CleanupBlocks";
+$maintClass = CleanupBlocks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupCaps.php b/maintenance/cleanupCaps.php
index 2da45ca..546825b 100644
--- a/maintenance/cleanupCaps.php
+++ b/maintenance/cleanupCaps.php
@@ -169,5 +169,5 @@
}
}

-$maintClass = "CapsCleanup";
+$maintClass = CapsCleanup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupEmptyCategories.php b/maintenance/cleanupEmptyCategories.php
index 2d22704..786c20a 100644
--- a/maintenance/cleanupEmptyCategories.php
+++ b/maintenance/cleanupEmptyCategories.php
@@ -199,5 +199,5 @@
}
}

-$maintClass = 'CleanupEmptyCategories';
+$maintClass = CleanupEmptyCategories::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupImages.php b/maintenance/cleanupImages.php
index e0da027..fbdc7c2 100644
--- a/maintenance/cleanupImages.php
+++ b/maintenance/cleanupImages.php
@@ -220,5 +220,5 @@
}
}

-$maintClass = "ImageCleanup";
+$maintClass = ImageCleanup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupInvalidDbKeys.php b/maintenance/cleanupInvalidDbKeys.php
index 569fd2b..54ed3aa 100644
--- a/maintenance/cleanupInvalidDbKeys.php
+++ b/maintenance/cleanupInvalidDbKeys.php
@@ -307,5 +307,5 @@
}
}

-$maintClass = 'CleanupInvalidDbKeys';
+$maintClass = CleanupInvalidDbKeys::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupPreferences.php b/maintenance/cleanupPreferences.php
index 6e58ae9..a55b539 100644
--- a/maintenance/cleanupPreferences.php
+++ b/maintenance/cleanupPreferences.php
@@ -48,5 +48,5 @@
}
}

-$maintClass = 'CleanupPreferences'; // Tells it to run the class
+$maintClass = CleanupPreferences::class; // Tells it to run the class
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupRemovedModules.php b/maintenance/cleanupRemovedModules.php
index a6f10c6..63838d2 100644
--- a/maintenance/cleanupRemovedModules.php
+++ b/maintenance/cleanupRemovedModules.php
@@ -77,5 +77,5 @@
}
}

-$maintClass = 'CleanupRemovedModules';
+$maintClass = CleanupRemovedModules::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupSpam.php b/maintenance/cleanupSpam.php
index 3d039fa..038b28c 100644
--- a/maintenance/cleanupSpam.php
+++ b/maintenance/cleanupSpam.php
@@ -156,5 +156,5 @@
}
}

-$maintClass = "CleanupSpam";
+$maintClass = CleanupSpam::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupTitles.php b/maintenance/cleanupTitles.php
index 24d6d86..8c782d9 100644
--- a/maintenance/cleanupTitles.php
+++ b/maintenance/cleanupTitles.php
@@ -189,5 +189,5 @@
}
}

-$maintClass = "TitleCleanup";
+$maintClass = TitleCleanup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php
index aeaf150..61cd9c2 100644
--- a/maintenance/cleanupUploadStash.php
+++ b/maintenance/cleanupUploadStash.php
@@ -152,5 +152,5 @@
}
}

-$maintClass = "UploadStashCleanup";
+$maintClass = UploadStashCleanup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupUsersWithNoId.php b/maintenance/cleanupUsersWithNoId.php
index 74167d1..3763d3b 100644
--- a/maintenance/cleanupUsersWithNoId.php
+++ b/maintenance/cleanupUsersWithNoId.php
@@ -208,5 +208,5 @@
}
}

-$maintClass = "CleanupUsersWithNoId";
+$maintClass = CleanupUsersWithNoId::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/cleanupWatchlist.php b/maintenance/cleanupWatchlist.php
index 9728ac5..64d39dd 100644
--- a/maintenance/cleanupWatchlist.php
+++ b/maintenance/cleanupWatchlist.php
@@ -95,5 +95,5 @@
}
}

-$maintClass = "WatchlistCleanup";
+$maintClass = WatchlistCleanup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/clearInterwikiCache.php b/maintenance/clearInterwikiCache.php
index ce19974..2e1f7c9 100644
--- a/maintenance/clearInterwikiCache.php
+++ b/maintenance/clearInterwikiCache.php
@@ -54,5 +54,5 @@
}
}

-$maintClass = "ClearInterwikiCache";
+$maintClass = ClearInterwikiCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/commandLine.inc b/maintenance/commandLine.inc
index 3329958..8232d52 100644
--- a/maintenance/commandLine.inc
+++ b/maintenance/commandLine.inc
@@ -67,5 +67,5 @@
}
}

-$maintClass = 'CommandLineInc';
+$maintClass = CommandLineInc::class;
require RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/compareParserCache.php b/maintenance/compareParserCache.php
index afbb268..b12974b 100644
--- a/maintenance/compareParserCache.php
+++ b/maintenance/compareParserCache.php
@@ -108,5 +108,5 @@
}
}

-$maintClass = "CompareParserCache";
+$maintClass = CompareParserCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/compareParsers.php b/maintenance/compareParsers.php
index 3b09385..fe6e604 100644
--- a/maintenance/compareParsers.php
+++ b/maintenance/compareParsers.php
@@ -185,5 +185,5 @@
}
}

-$maintClass = "CompareParsers";
+$maintClass = CompareParsers::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/convertExtensionToRegistration.php b/maintenance/convertExtensionToRegistration.php
index 24391c1..0205311 100644
--- a/maintenance/convertExtensionToRegistration.php
+++ b/maintenance/convertExtensionToRegistration.php
@@ -63,7 +63,7 @@
}

protected function getAllGlobals() {
- $processor = new ReflectionClass( 'ExtensionProcessor' );
+ $processor = new ReflectionClass( ExtensionProcessor::class );
$settings = $processor->getProperty( 'globalSettings' );
$settings->setAccessible( true );
return array_merge( $settings->getValue(), $this->formerGlobals );
@@ -303,5 +303,5 @@
}
}

-$maintClass = 'ConvertExtensionToRegistration';
+$maintClass = ConvertExtensionToRegistration::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php
index 54c0eda..8cd0297 100644
--- a/maintenance/convertLinks.php
+++ b/maintenance/convertLinks.php
@@ -302,5 +302,5 @@
}
}

-$maintClass = "ConvertLinks";
+$maintClass = ConvertLinks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/convertUserOptions.php b/maintenance/convertUserOptions.php
index 501f045..c1a096f 100644
--- a/maintenance/convertUserOptions.php
+++ b/maintenance/convertUserOptions.php
@@ -120,5 +120,5 @@
}
}

-$maintClass = "ConvertUserOptions";
+$maintClass = ConvertUserOptions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php
index b46cac7..3c7ffba 100644
--- a/maintenance/copyFileBackend.php
+++ b/maintenance/copyFileBackend.php
@@ -374,5 +374,5 @@
}
}

-$maintClass = 'CopyFileBackend';
+$maintClass = CopyFileBackend::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/copyJobQueue.php b/maintenance/copyJobQueue.php
index 7dd40b8..dc70e9c 100644
--- a/maintenance/copyJobQueue.php
+++ b/maintenance/copyJobQueue.php
@@ -94,5 +94,5 @@
}
}

-$maintClass = 'CopyJobQueue';
+$maintClass = CopyJobQueue::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/createAndPromote.php b/maintenance/createAndPromote.php
index 8035c3e..d3efca6 100644
--- a/maintenance/createAndPromote.php
+++ b/maintenance/createAndPromote.php
@@ -150,5 +150,5 @@
}
}

-$maintClass = "CreateAndPromote";
+$maintClass = CreateAndPromote::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/createCommonPasswordCdb.php b/maintenance/createCommonPasswordCdb.php
index e77113a..ef5a30d 100644
--- a/maintenance/createCommonPasswordCdb.php
+++ b/maintenance/createCommonPasswordCdb.php
@@ -114,5 +114,5 @@
}
}

-$maintClass = "GenerateCommonPassword";
+$maintClass = GenerateCommonPassword::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteArchivedFiles.php b/maintenance/deleteArchivedFiles.php
index 0f33a14..d010073 100644
--- a/maintenance/deleteArchivedFiles.php
+++ b/maintenance/deleteArchivedFiles.php
@@ -130,5 +130,5 @@
}
}

-$maintClass = "DeleteArchivedFiles";
+$maintClass = DeleteArchivedFiles::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteArchivedRevisions.php b/maintenance/deleteArchivedRevisions.php
index 905b5d9..e441951 100644
--- a/maintenance/deleteArchivedRevisions.php
+++ b/maintenance/deleteArchivedRevisions.php
@@ -61,5 +61,5 @@
}
}

-$maintClass = "DeleteArchivedRevisions";
+$maintClass = DeleteArchivedRevisions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteBatch.php b/maintenance/deleteBatch.php
index c3cbdeb..0f3c506 100644
--- a/maintenance/deleteBatch.php
+++ b/maintenance/deleteBatch.php
@@ -123,5 +123,5 @@
}
}

-$maintClass = "DeleteBatch";
+$maintClass = DeleteBatch::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteDefaultMessages.php b/maintenance/deleteDefaultMessages.php
index 417aa03..c52013b 100644
--- a/maintenance/deleteDefaultMessages.php
+++ b/maintenance/deleteDefaultMessages.php
@@ -95,5 +95,5 @@
}
}

-$maintClass = "DeleteDefaultMessages";
+$maintClass = DeleteDefaultMessages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteEqualMessages.php b/maintenance/deleteEqualMessages.php
index 2a1fe22..cd9ef11 100644
--- a/maintenance/deleteEqualMessages.php
+++ b/maintenance/deleteEqualMessages.php
@@ -202,5 +202,5 @@
}
}

-$maintClass = "DeleteEqualMessages";
+$maintClass = DeleteEqualMessages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteOldRevisions.php b/maintenance/deleteOldRevisions.php
index aa11cd9..fc43e22 100644
--- a/maintenance/deleteOldRevisions.php
+++ b/maintenance/deleteOldRevisions.php
@@ -99,5 +99,5 @@
}
}

-$maintClass = "DeleteOldRevisions";
+$maintClass = DeleteOldRevisions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteOrphanedRevisions.php b/maintenance/deleteOrphanedRevisions.php
index 4d60070..8d3f6b3 100644
--- a/maintenance/deleteOrphanedRevisions.php
+++ b/maintenance/deleteOrphanedRevisions.php
@@ -98,5 +98,5 @@
}
}

-$maintClass = "DeleteOrphanedRevisions";
+$maintClass = DeleteOrphanedRevisions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/deleteSelfExternals.php b/maintenance/deleteSelfExternals.php
index ab25784..20d5c2f 100644
--- a/maintenance/deleteSelfExternals.php
+++ b/maintenance/deleteSelfExternals.php
@@ -54,5 +54,5 @@
}
}

-$maintClass = "DeleteSelfExternals";
+$maintClass = DeleteSelfExternals::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/doMaintenance.php b/maintenance/doMaintenance.php
index ad75c6b..f3fb32c 100644
--- a/maintenance/doMaintenance.php
+++ b/maintenance/doMaintenance.php
@@ -34,7 +34,7 @@
// Wasn't included from the file scope, halt execution (probably wanted the class)
// If a class is using commandLine.inc (old school maintenance), they definitely
// cannot be included and will proceed with execution
-if ( !Maintenance::shouldExecute() && $maintClass != 'CommandLineInc' ) {
+if ( !Maintenance::shouldExecute() && $maintClass != CommandLineInc::class ) {
return;
}

@@ -69,7 +69,7 @@
&& ( $wgLocalisationCacheConf['store'] == 'db'
|| ( $wgLocalisationCacheConf['store'] == 'detect' && !$wgCacheDirectory ) )
) {
- $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
+ $wgLocalisationCacheConf['storeClass'] = LCStoreNull::class;
}
}

diff --git a/maintenance/dumpBackup.php b/maintenance/dumpBackup.php
index 4890199..6bbd86d 100644
--- a/maintenance/dumpBackup.php
+++ b/maintenance/dumpBackup.php
@@ -133,5 +133,5 @@
}
}

-$maintClass = 'DumpBackup';
+$maintClass = DumpBackup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/dumpCategoriesAsRdf.php b/maintenance/dumpCategoriesAsRdf.php
index 3467932..e4bd756 100644
--- a/maintenance/dumpCategoriesAsRdf.php
+++ b/maintenance/dumpCategoriesAsRdf.php
@@ -180,5 +180,5 @@
}
}

-$maintClass = "DumpCategoriesAsRdf";
+$maintClass = DumpCategoriesAsRdf::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/dumpIterator.php b/maintenance/dumpIterator.php
index 707f4b3..e9a6bc5 100644
--- a/maintenance/dumpIterator.php
+++ b/maintenance/dumpIterator.php
@@ -105,7 +105,7 @@
if ( $this->getDbType() == Maintenance::DB_NONE ) {
global $wgUseDatabaseMessages, $wgLocalisationCacheConf, $wgHooks;
$wgUseDatabaseMessages = false;
- $wgLocalisationCacheConf['storeClass'] = 'LCStoreNull';
+ $wgLocalisationCacheConf['storeClass'] = LCStoreNull::class;
$wgHooks['InterwikiLoadPrefix'][] = 'DumpIterator::disableInterwikis';
}
}
@@ -185,5 +185,5 @@
}
}

-$maintClass = "SearchDump";
+$maintClass = SearchDump::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/dumpLinks.php b/maintenance/dumpLinks.php
index ff4e894..6904953 100644
--- a/maintenance/dumpLinks.php
+++ b/maintenance/dumpLinks.php
@@ -75,5 +75,5 @@
}
}

-$maintClass = "DumpLinks";
+$maintClass = DumpLinks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/dumpTextPass.php b/maintenance/dumpTextPass.php
index e18d0b8..fdc36c7 100644
--- a/maintenance/dumpTextPass.php
+++ b/maintenance/dumpTextPass.php
@@ -986,5 +986,5 @@
}
}

-$maintClass = 'TextPassDumper';
+$maintClass = TextPassDumper::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/dumpUploads.php b/maintenance/dumpUploads.php
index 8d63fe5..4bfc574 100644
--- a/maintenance/dumpUploads.php
+++ b/maintenance/dumpUploads.php
@@ -124,5 +124,5 @@
}
}

-$maintClass = "UploadDumper";
+$maintClass = UploadDumper::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/edit.php b/maintenance/edit.php
index 7e50e9e..60ed252 100644
--- a/maintenance/edit.php
+++ b/maintenance/edit.php
@@ -103,5 +103,5 @@
}
}

-$maintClass = "EditCLI";
+$maintClass = EditCLI::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/eraseArchivedFile.php b/maintenance/eraseArchivedFile.php
index 24ef1ed..ef6d3d8 100644
--- a/maintenance/eraseArchivedFile.php
+++ b/maintenance/eraseArchivedFile.php
@@ -115,5 +115,5 @@
}
}

-$maintClass = "EraseArchivedFile";
+$maintClass = EraseArchivedFile::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/exportSites.php b/maintenance/exportSites.php
index 542bdda..2462eaf 100644
--- a/maintenance/exportSites.php
+++ b/maintenance/exportSites.php
@@ -52,5 +52,5 @@

}

-$maintClass = 'ExportSites';
+$maintClass = ExportSites::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fetchText.php b/maintenance/fetchText.php
index 9c5a375..bc4fa31 100644
--- a/maintenance/fetchText.php
+++ b/maintenance/fetchText.php
@@ -92,5 +92,5 @@
}
}

-$maintClass = "FetchText";
+$maintClass = FetchText::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fileOpPerfTest.php b/maintenance/fileOpPerfTest.php
index 4b6c619..a60942f 100644
--- a/maintenance/fileOpPerfTest.php
+++ b/maintenance/fileOpPerfTest.php
@@ -141,5 +141,5 @@
}
}

-$maintClass = "TestFileOpPerformance";
+$maintClass = TestFileOpPerformance::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/findDeprecated.php b/maintenance/findDeprecated.php
index ec998da..ae2ee42 100644
--- a/maintenance/findDeprecated.php
+++ b/maintenance/findDeprecated.php
@@ -202,5 +202,5 @@
}
}

-$maintClass = 'FindDeprecated';
+$maintClass = FindDeprecated::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/findHooks.php b/maintenance/findHooks.php
index 6a21a61..04c00e2 100644
--- a/maintenance/findHooks.php
+++ b/maintenance/findHooks.php
@@ -349,5 +349,5 @@
}
}

-$maintClass = 'FindHooks';
+$maintClass = FindHooks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/findMissingFiles.php b/maintenance/findMissingFiles.php
index 8bf2bdb..4997cab 100644
--- a/maintenance/findMissingFiles.php
+++ b/maintenance/findMissingFiles.php
@@ -115,5 +115,5 @@
}
}

-$maintClass = 'FindMissingFiles';
+$maintClass = FindMissingFiles::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/findOrphanedFiles.php b/maintenance/findOrphanedFiles.php
index 522bbc2..57e04e0 100644
--- a/maintenance/findOrphanedFiles.php
+++ b/maintenance/findOrphanedFiles.php
@@ -151,5 +151,5 @@
}
}

-$maintClass = 'FindOrphanedFiles';
+$maintClass = FindOrphanedFiles::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fixDefaultJsonContentPages.php b/maintenance/fixDefaultJsonContentPages.php
index 7262770..cb4eddf 100644
--- a/maintenance/fixDefaultJsonContentPages.php
+++ b/maintenance/fixDefaultJsonContentPages.php
@@ -124,5 +124,5 @@
}
}

-$maintClass = 'FixDefaultJsonContentPages';
+$maintClass = FixDefaultJsonContentPages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fixDoubleRedirects.php b/maintenance/fixDoubleRedirects.php
index 7e29f09..a76617a 100644
--- a/maintenance/fixDoubleRedirects.php
+++ b/maintenance/fixDoubleRedirects.php
@@ -136,5 +136,5 @@
}
}

-$maintClass = "FixDoubleRedirects";
+$maintClass = FixDoubleRedirects::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php
index 97cd37e..c70b8be 100644
--- a/maintenance/fixExtLinksProtocolRelative.php
+++ b/maintenance/fixExtLinksProtocolRelative.php
@@ -95,5 +95,5 @@
}
}

-$maintClass = "FixExtLinksProtocolRelative";
+$maintClass = FixExtLinksProtocolRelative::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fixTimestamps.php b/maintenance/fixTimestamps.php
index 1efbc5f..32ff985 100644
--- a/maintenance/fixTimestamps.php
+++ b/maintenance/fixTimestamps.php
@@ -125,5 +125,5 @@
}
}

-$maintClass = "FixTimestamps";
+$maintClass = FixTimestamps::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/fixUserRegistration.php b/maintenance/fixUserRegistration.php
index 30364c6..57fd91b 100644
--- a/maintenance/fixUserRegistration.php
+++ b/maintenance/fixUserRegistration.php
@@ -87,5 +87,5 @@
}
}

-$maintClass = "FixUserRegistration";
+$maintClass = FixUserRegistration::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/formatInstallDoc.php b/maintenance/formatInstallDoc.php
index 95d90c1..dbaeb86 100644
--- a/maintenance/formatInstallDoc.php
+++ b/maintenance/formatInstallDoc.php
@@ -72,5 +72,5 @@
}
}

-$maintClass = 'MaintenanceFormatInstallDoc';
+$maintClass = MaintenanceFormatInstallDoc::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/generateJsonI18n.php b/maintenance/generateJsonI18n.php
index ec32aee..efddfb3 100644
--- a/maintenance/generateJsonI18n.php
+++ b/maintenance/generateJsonI18n.php
@@ -192,5 +192,5 @@
}
}

-$maintClass = "GenerateJsonI18n";
+$maintClass = GenerateJsonI18n::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/generateSitemap.php b/maintenance/generateSitemap.php
index 4a70aaa..5a2c6c7 100644
--- a/maintenance/generateSitemap.php
+++ b/maintenance/generateSitemap.php
@@ -555,5 +555,5 @@
}
}

-$maintClass = "GenerateSitemap";
+$maintClass = GenerateSitemap::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/getConfiguration.php b/maintenance/getConfiguration.php
index 18dcc22..de6e87a 100644
--- a/maintenance/getConfiguration.php
+++ b/maintenance/getConfiguration.php
@@ -192,5 +192,5 @@
}
}

-$maintClass = "GetConfiguration";
+$maintClass = GetConfiguration::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/getLagTimes.php b/maintenance/getLagTimes.php
index ad2fdf8..c2c7983 100644
--- a/maintenance/getLagTimes.php
+++ b/maintenance/getLagTimes.php
@@ -75,5 +75,5 @@
}
}

-$maintClass = "GetLagTimes";
+$maintClass = GetLagTimes::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/getReplicaServer.php b/maintenance/getReplicaServer.php
index 6e0a1fe..43e876e 100644
--- a/maintenance/getReplicaServer.php
+++ b/maintenance/getReplicaServer.php
@@ -51,5 +51,5 @@
}
}

-$maintClass = "GetSlaveServer";
+$maintClass = GetSlaveServer::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/getText.php b/maintenance/getText.php
index 21a183b..2e8cf77 100644
--- a/maintenance/getText.php
+++ b/maintenance/getText.php
@@ -62,5 +62,5 @@
}
}

-$maintClass = "GetTextMaint";
+$maintClass = GetTextMaint::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/hhvm/makeRepo.php b/maintenance/hhvm/makeRepo.php
index f77f5b9..cef0dadc 100644
--- a/maintenance/hhvm/makeRepo.php
+++ b/maintenance/hhvm/makeRepo.php
@@ -157,5 +157,5 @@
}
}

-$maintClass = 'HHVMMakeRepo';
+$maintClass = HHVMMakeRepo::class;
require RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/hhvm/run-server b/maintenance/hhvm/run-server
index 2d71b87..d84e02f 100755
--- a/maintenance/hhvm/run-server
+++ b/maintenance/hhvm/run-server
@@ -24,5 +24,5 @@
exit( $ret );
}
}
-$maintClass = 'RunHipHopServer';
+$maintClass = RunHipHopServer::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/importDump.php b/maintenance/importDump.php
index 918c1ab..965906f 100644
--- a/maintenance/importDump.php
+++ b/maintenance/importDump.php
@@ -346,5 +346,5 @@
}
}

-$maintClass = 'BackupReader';
+$maintClass = BackupReader::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/importImages.php b/maintenance/importImages.php
index a72ec67..eb13dd1 100644
--- a/maintenance/importImages.php
+++ b/maintenance/importImages.php
@@ -519,5 +519,5 @@

}

-$maintClass = 'ImportImages';
+$maintClass = ImportImages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/importSiteScripts.php b/maintenance/importSiteScripts.php
index 7fdb355..e60e776 100644
--- a/maintenance/importSiteScripts.php
+++ b/maintenance/importSiteScripts.php
@@ -114,5 +114,5 @@
}
}

-$maintClass = 'ImportSiteScripts';
+$maintClass = ImportSiteScripts::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/importSites.php b/maintenance/importSites.php
index 5722344..be6cc05 100644
--- a/maintenance/importSites.php
+++ b/maintenance/importSites.php
@@ -50,5 +50,5 @@
}
}

-$maintClass = 'ImportSites';
+$maintClass = ImportSites::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/importTextFiles.php b/maintenance/importTextFiles.php
index 4681003..c99aa15 100644
--- a/maintenance/importTextFiles.php
+++ b/maintenance/importTextFiles.php
@@ -204,5 +204,5 @@
}
}

-$maintClass = "ImportTextFiles";
+$maintClass = ImportTextFiles::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/initEditCount.php b/maintenance/initEditCount.php
index 96aea03..3c4336f 100644
--- a/maintenance/initEditCount.php
+++ b/maintenance/initEditCount.php
@@ -101,5 +101,5 @@
}
}

-$maintClass = "InitEditCount";
+$maintClass = InitEditCount::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/initSiteStats.php b/maintenance/initSiteStats.php
index b2530ce..297544d 100644
--- a/maintenance/initSiteStats.php
+++ b/maintenance/initSiteStats.php
@@ -78,5 +78,5 @@
}
}

-$maintClass = "InitSiteStats";
+$maintClass = InitSiteStats::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/initUserPreference.php b/maintenance/initUserPreference.php
index 7b7cf15..1ab880c 100644
--- a/maintenance/initUserPreference.php
+++ b/maintenance/initUserPreference.php
@@ -80,5 +80,5 @@
}
}

-$maintClass = 'InitUserPreference'; // Tells it to run the class
+$maintClass = InitUserPreference::class; // Tells it to run the class
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/install.php b/maintenance/install.php
index c996530..d170c15 100644
--- a/maintenance/install.php
+++ b/maintenance/install.php
@@ -168,6 +168,6 @@
}
}

-$maintClass = 'CommandLineInstaller';
+$maintClass = CommandLineInstaller::class;

require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/invalidateUserSessions.php b/maintenance/invalidateUserSessions.php
index 6e62cd1..8d877a5 100644
--- a/maintenance/invalidateUserSessions.php
+++ b/maintenance/invalidateUserSessions.php
@@ -90,5 +90,5 @@
}
}

-$maintClass = "InvalidateUserSesssions";
+$maintClass = InvalidateUserSesssions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/jsparse.php b/maintenance/jsparse.php
index 49b945c..deac4af 100644
--- a/maintenance/jsparse.php
+++ b/maintenance/jsparse.php
@@ -73,5 +73,5 @@
}
}

-$maintClass = "JSParseHelper";
+$maintClass = JSParseHelper::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/lag.php b/maintenance/lag.php
index fa2bd54..f041e15 100644
--- a/maintenance/lag.php
+++ b/maintenance/lag.php
@@ -68,5 +68,5 @@
}
}

-$maintClass = "DatabaseLag";
+$maintClass = DatabaseLag::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/alltrans.php b/maintenance/language/alltrans.php
index 931718f..684f4d2 100644
--- a/maintenance/language/alltrans.php
+++ b/maintenance/language/alltrans.php
@@ -43,5 +43,5 @@
}
}

-$maintClass = "AllTrans";
+$maintClass = AllTrans::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/date-formats.php b/maintenance/language/date-formats.php
index 2142c24..f93c506 100644
--- a/maintenance/language/date-formats.php
+++ b/maintenance/language/date-formats.php
@@ -78,5 +78,5 @@
}
}

-$maintClass = "DateFormats";
+$maintClass = DateFormats::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/digit2html.php b/maintenance/language/digit2html.php
index bb1f3d2..9aacf51 100644
--- a/maintenance/language/digit2html.php
+++ b/maintenance/language/digit2html.php
@@ -65,5 +65,5 @@
}
}

-$maintClass = "Digit2Html";
+$maintClass = Digit2Html::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/dumpMessages.php b/maintenance/language/dumpMessages.php
index 37c87a8..543ee06 100644
--- a/maintenance/language/dumpMessages.php
+++ b/maintenance/language/dumpMessages.php
@@ -48,5 +48,5 @@
}
}

-$maintClass = "DumpMessages";
+$maintClass = DumpMessages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/generateCollationData.php b/maintenance/language/generateCollationData.php
index 141f1ea..85949d8 100644
--- a/maintenance/language/generateCollationData.php
+++ b/maintenance/language/generateCollationData.php
@@ -464,5 +464,5 @@
}
}

-$maintClass = 'GenerateCollationData';
+$maintClass = GenerateCollationData::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/generateNormalizerDataAr.php b/maintenance/language/generateNormalizerDataAr.php
index 4338a17..90ca41e 100644
--- a/maintenance/language/generateNormalizerDataAr.php
+++ b/maintenance/language/generateNormalizerDataAr.php
@@ -127,5 +127,5 @@
}
}

-$maintClass = 'GenerateNormalizerDataAr';
+$maintClass = GenerateNormalizerDataAr::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/generateNormalizerDataMl.php b/maintenance/language/generateNormalizerDataMl.php
index a84ffb0..664f06c 100644
--- a/maintenance/language/generateNormalizerDataMl.php
+++ b/maintenance/language/generateNormalizerDataMl.php
@@ -66,5 +66,5 @@
}
}

-$maintClass = 'GenerateNormalizerDataMl';
+$maintClass = GenerateNormalizerDataMl::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/langmemusage.php b/maintenance/language/langmemusage.php
index cb989bc..6f2c6ad 100644
--- a/maintenance/language/langmemusage.php
+++ b/maintenance/language/langmemusage.php
@@ -61,5 +61,5 @@
}
}

-$maintClass = "LangMemUsage";
+$maintClass = LangMemUsage::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/language/listVariants.php b/maintenance/language/listVariants.php
index e8d0e76..4098e0c 100644
--- a/maintenance/language/listVariants.php
+++ b/maintenance/language/listVariants.php
@@ -69,5 +69,5 @@
}
}

-$maintClass = 'ListVariants';
+$maintClass = ListVariants::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/makeTestEdits.php b/maintenance/makeTestEdits.php
index cfd5fc2..d4ce931 100644
--- a/maintenance/makeTestEdits.php
+++ b/maintenance/makeTestEdits.php
@@ -64,5 +64,5 @@
}
}

-$maintClass = "MakeTestEdits";
+$maintClass = MakeTestEdits::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/manageJobs.php b/maintenance/manageJobs.php
index c1b038c..488c915 100644
--- a/maintenance/manageJobs.php
+++ b/maintenance/manageJobs.php
@@ -93,5 +93,5 @@
}
}

-$maintClass = "ManageJobs";
+$maintClass = ManageJobs::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/mctest.php b/maintenance/mctest.php
index 14df53c..c976bd7 100644
--- a/maintenance/mctest.php
+++ b/maintenance/mctest.php
@@ -102,5 +102,5 @@
}
}

-$maintClass = "McTest";
+$maintClass = McTest::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/mergeMessageFileList.php b/maintenance/mergeMessageFileList.php
index 7d85259..51c41db 100644
--- a/maintenance/mergeMessageFileList.php
+++ b/maintenance/mergeMessageFileList.php
@@ -26,7 +26,7 @@
define( 'MW_NO_EXTENSION_MESSAGES', 1 );

require_once __DIR__ . '/Maintenance.php';
-$maintClass = 'MergeMessageFileList';
+$maintClass = MergeMessageFileList::class;
$mmfl = false;

/**
diff --git a/maintenance/migrateArchiveText.php b/maintenance/migrateArchiveText.php
index dd78a7d..e9beaa3 100644
--- a/maintenance/migrateArchiveText.php
+++ b/maintenance/migrateArchiveText.php
@@ -155,5 +155,5 @@
}
}

-$maintClass = "MigrateArchiveText";
+$maintClass = MigrateArchiveText::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/migrateComments.php b/maintenance/migrateComments.php
index c000871..c35315d 100644
--- a/maintenance/migrateComments.php
+++ b/maintenance/migrateComments.php
@@ -291,5 +291,5 @@
}
}

-$maintClass = "MigrateComments";
+$maintClass = MigrateComments::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/migrateFileRepoLayout.php b/maintenance/migrateFileRepoLayout.php
index 536eddd..6188ea1 100644
--- a/maintenance/migrateFileRepoLayout.php
+++ b/maintenance/migrateFileRepoLayout.php
@@ -235,5 +235,5 @@
}
}

-$maintClass = 'MigrateFileRepoLayout';
+$maintClass = MigrateFileRepoLayout::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/migrateUserGroup.php b/maintenance/migrateUserGroup.php
index 703d97f..eeaddba 100644
--- a/maintenance/migrateUserGroup.php
+++ b/maintenance/migrateUserGroup.php
@@ -106,5 +106,5 @@
}
}

-$maintClass = "MigrateUserGroup";
+$maintClass = MigrateUserGroup::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/minify.php b/maintenance/minify.php
index 540a4d9..ddae17d 100644
--- a/maintenance/minify.php
+++ b/maintenance/minify.php
@@ -129,5 +129,5 @@
}
}

-$maintClass = 'MinifyScript';
+$maintClass = MinifyScript::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/moveBatch.php b/maintenance/moveBatch.php
index 9c53daa..090c3d4 100644
--- a/maintenance/moveBatch.php
+++ b/maintenance/moveBatch.php
@@ -122,5 +122,5 @@
}
}

-$maintClass = "MoveBatch";
+$maintClass = MoveBatch::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php
index 9447268..2d6a0be 100644
--- a/maintenance/mwdocgen.php
+++ b/maintenance/mwdocgen.php
@@ -165,5 +165,5 @@
}
}

-$maintClass = 'MWDocGen';
+$maintClass = MWDocGen::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php
index 84d4533..3c83921 100644
--- a/maintenance/namespaceDupes.php
+++ b/maintenance/namespaceDupes.php
@@ -616,5 +616,5 @@
}
}

-$maintClass = "NamespaceConflictChecker";
+$maintClass = NamespaceConflictChecker::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/nukeNS.php b/maintenance/nukeNS.php
index e735aed..ee1f59c 100644
--- a/maintenance/nukeNS.php
+++ b/maintenance/nukeNS.php
@@ -88,7 +88,7 @@
$dbw->query( "DELETE FROM $tbl_pag WHERE page_id = $id" );
$this->commitTransaction( $dbw, __METHOD__ );
// Delete revisions as appropriate
- $child = $this->runChild( 'NukePage', 'nukePage.php' );
+ $child = $this->runChild( NukePage::class, 'nukePage.php' );
$child->deleteRevisions( $revs );
$this->purgeRedundantText( true );
$n_deleted++;
@@ -118,5 +118,5 @@
}
}

-$maintClass = "NukeNS";
+$maintClass = NukeNS::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/nukePage.php b/maintenance/nukePage.php
index e27324a..baead94 100644
--- a/maintenance/nukePage.php
+++ b/maintenance/nukePage.php
@@ -115,5 +115,5 @@
}
}

-$maintClass = "NukePage";
+$maintClass = NukePage::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/oracle/alterSharedConstraints.php b/maintenance/oracle/alterSharedConstraints.php
index ed412da..7f997cb 100644
--- a/maintenance/oracle/alterSharedConstraints.php
+++ b/maintenance/oracle/alterSharedConstraints.php
@@ -93,5 +93,5 @@
}
}

-$maintClass = "AlterSharedConstraints";
+$maintClass = AlterSharedConstraints::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/orphans.php b/maintenance/orphans.php
index 54a68ae..a1cf166 100644
--- a/maintenance/orphans.php
+++ b/maintenance/orphans.php
@@ -252,5 +252,5 @@
}
}

-$maintClass = "Orphans";
+$maintClass = Orphans::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/pageExists.php b/maintenance/pageExists.php
index 24ec8cb..dc9bbda 100644
--- a/maintenance/pageExists.php
+++ b/maintenance/pageExists.php
@@ -49,5 +49,5 @@
}
}

-$maintClass = "PageExists";
+$maintClass = PageExists::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/parse.php b/maintenance/parse.php
index 6279a34..b87a716 100644
--- a/maintenance/parse.php
+++ b/maintenance/parse.php
@@ -140,5 +140,5 @@
}
}

-$maintClass = "CLIParser";
+$maintClass = CLIParser::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/patchSql.php b/maintenance/patchSql.php
index bc21140..3ba962f 100644
--- a/maintenance/patchSql.php
+++ b/maintenance/patchSql.php
@@ -66,5 +66,5 @@
}
}

-$maintClass = "PatchSql";
+$maintClass = PatchSql::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateBacklinkNamespace.php b/maintenance/populateBacklinkNamespace.php
index f5f1de6..23144e9 100644
--- a/maintenance/populateBacklinkNamespace.php
+++ b/maintenance/populateBacklinkNamespace.php
@@ -94,5 +94,5 @@
}
}

-$maintClass = "PopulateBacklinkNamespace";
+$maintClass = PopulateBacklinkNamespace::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateCategory.php b/maintenance/populateCategory.php
index 5dccdd6..f2a0007 100644
--- a/maintenance/populateCategory.php
+++ b/maintenance/populateCategory.php
@@ -150,5 +150,5 @@
}
}

-$maintClass = "PopulateCategory";
+$maintClass = PopulateCategory::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateContentModel.php b/maintenance/populateContentModel.php
index a4fac05..8d64dae 100644
--- a/maintenance/populateContentModel.php
+++ b/maintenance/populateContentModel.php
@@ -250,5 +250,5 @@
}
}

-$maintClass = 'PopulateContentModel';
+$maintClass = PopulateContentModel::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateFilearchiveSha1.php b/maintenance/populateFilearchiveSha1.php
index cbd969d..7c094be 100644
--- a/maintenance/populateFilearchiveSha1.php
+++ b/maintenance/populateFilearchiveSha1.php
@@ -104,5 +104,5 @@
}
}

-$maintClass = "PopulateFilearchiveSha1";
+$maintClass = PopulateFilearchiveSha1::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateImageSha1.php b/maintenance/populateImageSha1.php
index 84b65ee..212a20d 100644
--- a/maintenance/populateImageSha1.php
+++ b/maintenance/populateImageSha1.php
@@ -178,5 +178,5 @@
}
}

-$maintClass = "PopulateImageSha1";
+$maintClass = PopulateImageSha1::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateIpChanges.php b/maintenance/populateIpChanges.php
index 2165820..fbe16de 100644
--- a/maintenance/populateIpChanges.php
+++ b/maintenance/populateIpChanges.php
@@ -137,5 +137,5 @@
}
}

-$maintClass = "PopulateIpChanges";
+$maintClass = PopulateIpChanges::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateLogSearch.php b/maintenance/populateLogSearch.php
index 979a28a..f960753 100644
--- a/maintenance/populateLogSearch.php
+++ b/maintenance/populateLogSearch.php
@@ -169,5 +169,5 @@
}
}

-$maintClass = "PopulateLogSearch";
+$maintClass = PopulateLogSearch::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateLogUsertext.php b/maintenance/populateLogUsertext.php
index 6e8261a..2fe7ea6 100644
--- a/maintenance/populateLogUsertext.php
+++ b/maintenance/populateLogUsertext.php
@@ -85,5 +85,5 @@
}
}

-$maintClass = "PopulateLogUsertext";
+$maintClass = PopulateLogUsertext::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populatePPSortKey.php b/maintenance/populatePPSortKey.php
index 98d535a..1ba7054 100644
--- a/maintenance/populatePPSortKey.php
+++ b/maintenance/populatePPSortKey.php
@@ -100,5 +100,5 @@
}
}

-$maintClass = 'PopulatePPSortKey';
+$maintClass = PopulatePPSortKey::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateParentId.php b/maintenance/populateParentId.php
index 99c2b23..39bc733 100644
--- a/maintenance/populateParentId.php
+++ b/maintenance/populateParentId.php
@@ -127,5 +127,5 @@
}
}

-$maintClass = "PopulateParentId";
+$maintClass = PopulateParentId::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateRecentChangesSource.php b/maintenance/populateRecentChangesSource.php
index 0a53dd6..4ac3486 100644
--- a/maintenance/populateRecentChangesSource.php
+++ b/maintenance/populateRecentChangesSource.php
@@ -104,5 +104,5 @@
}
}

-$maintClass = "PopulateRecentChangesSource";
+$maintClass = PopulateRecentChangesSource::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateRevisionLength.php b/maintenance/populateRevisionLength.php
index cc1a9f1..f83be9c 100644
--- a/maintenance/populateRevisionLength.php
+++ b/maintenance/populateRevisionLength.php
@@ -157,5 +157,5 @@
}
}

-$maintClass = "PopulateRevisionLength";
+$maintClass = PopulateRevisionLength::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/populateRevisionSha1.php b/maintenance/populateRevisionSha1.php
index 7ced779..54937ab 100644
--- a/maintenance/populateRevisionSha1.php
+++ b/maintenance/populateRevisionSha1.php
@@ -217,5 +217,5 @@
}
}

-$maintClass = "PopulateRevisionSha1";
+$maintClass = PopulateRevisionSha1::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/preprocessDump.php b/maintenance/preprocessDump.php
index 17d97b0..d540e8f 100644
--- a/maintenance/preprocessDump.php
+++ b/maintenance/preprocessDump.php
@@ -67,7 +67,7 @@
} elseif ( isset( $wgParserConf['preprocessorClass'] ) ) {
$name = $wgParserConf['preprocessorClass'];
} else {
- $name = 'Preprocessor_DOM';
+ $name = Preprocessor_DOM::class;
}

$wgParser->firstCallInit();
@@ -94,5 +94,5 @@
}
}

-$maintClass = "PreprocessDump";
+$maintClass = PreprocessDump::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/protect.php b/maintenance/protect.php
index eae6154..b47476a 100644
--- a/maintenance/protect.php
+++ b/maintenance/protect.php
@@ -89,5 +89,5 @@
}
}

-$maintClass = "Protect";
+$maintClass = Protect::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/pruneFileCache.php b/maintenance/pruneFileCache.php
index 1035ff5..74298cb 100644
--- a/maintenance/pruneFileCache.php
+++ b/maintenance/pruneFileCache.php
@@ -107,5 +107,5 @@
}
}

-$maintClass = "PruneFileCache";
+$maintClass = PruneFileCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeChangedFiles.php b/maintenance/purgeChangedFiles.php
index 9805452..7d5d40b 100644
--- a/maintenance/purgeChangedFiles.php
+++ b/maintenance/purgeChangedFiles.php
@@ -258,5 +258,5 @@
}
}

-$maintClass = "PurgeChangedFiles";
+$maintClass = PurgeChangedFiles::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeChangedPages.php b/maintenance/purgeChangedPages.php
index cce9b03..22020e7 100644
--- a/maintenance/purgeChangedPages.php
+++ b/maintenance/purgeChangedPages.php
@@ -190,5 +190,5 @@
}
}

-$maintClass = "PurgeChangedPages";
+$maintClass = PurgeChangedPages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeExpiredUserrights.php b/maintenance/purgeExpiredUserrights.php
index f5a085d..d0bbddf 100644
--- a/maintenance/purgeExpiredUserrights.php
+++ b/maintenance/purgeExpiredUserrights.php
@@ -41,5 +41,5 @@
}
}

-$maintClass = "PurgeExpiredUserrights";
+$maintClass = PurgeExpiredUserrights::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeList.php b/maintenance/purgeList.php
index 8cf217f..16a62f4 100644
--- a/maintenance/purgeList.php
+++ b/maintenance/purgeList.php
@@ -143,5 +143,5 @@
}
}

-$maintClass = "PurgeList";
+$maintClass = PurgeList::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeModuleDeps.php b/maintenance/purgeModuleDeps.php
index 591f7ee..3b25629 100644
--- a/maintenance/purgeModuleDeps.php
+++ b/maintenance/purgeModuleDeps.php
@@ -68,5 +68,5 @@
}
}

-$maintClass = 'PurgeModuleDeps';
+$maintClass = PurgeModuleDeps::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeOldText.php b/maintenance/purgeOldText.php
index 1b78c7d..65d25c9 100644
--- a/maintenance/purgeOldText.php
+++ b/maintenance/purgeOldText.php
@@ -41,5 +41,5 @@
}
}

-$maintClass = "PurgeOldText";
+$maintClass = PurgeOldText::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgePage.php b/maintenance/purgePage.php
index 44d390e..df1403c 100644
--- a/maintenance/purgePage.php
+++ b/maintenance/purgePage.php
@@ -74,5 +74,5 @@
}
}

-$maintClass = "PurgePage";
+$maintClass = PurgePage::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeParserCache.php b/maintenance/purgeParserCache.php
index 716be3a..dcd6d13 100644
--- a/maintenance/purgeParserCache.php
+++ b/maintenance/purgeParserCache.php
@@ -93,5 +93,5 @@
}
}

-$maintClass = 'PurgeParserCache';
+$maintClass = PurgeParserCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/reassignEdits.php b/maintenance/reassignEdits.php
index de09998..6f88f3d 100644
--- a/maintenance/reassignEdits.php
+++ b/maintenance/reassignEdits.php
@@ -195,5 +195,5 @@
}
}

-$maintClass = "ReassignEdits";
+$maintClass = ReassignEdits::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildFileCache.php b/maintenance/rebuildFileCache.php
index 1fc1daf..55ed4fa 100644
--- a/maintenance/rebuildFileCache.php
+++ b/maintenance/rebuildFileCache.php
@@ -179,5 +179,5 @@
}
}

-$maintClass = "RebuildFileCache";
+$maintClass = RebuildFileCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildImages.php b/maintenance/rebuildImages.php
index 8fceedb..713492a 100644
--- a/maintenance/rebuildImages.php
+++ b/maintenance/rebuildImages.php
@@ -233,5 +233,5 @@
}
}

-$maintClass = 'ImageBuilder';
+$maintClass = ImageBuilder::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildLocalisationCache.php b/maintenance/rebuildLocalisationCache.php
index 8f92420..4213d5f 100644
--- a/maintenance/rebuildLocalisationCache.php
+++ b/maintenance/rebuildLocalisationCache.php
@@ -177,5 +177,5 @@
}
}

-$maintClass = "RebuildLocalisationCache";
+$maintClass = RebuildLocalisationCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildSitesCache.php b/maintenance/rebuildSitesCache.php
index 93e6d47..41fd863 100644
--- a/maintenance/rebuildSitesCache.php
+++ b/maintenance/rebuildSitesCache.php
@@ -64,5 +64,5 @@

}

-$maintClass = "RebuildSitesCache";
+$maintClass = RebuildSitesCache::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildall.php b/maintenance/rebuildall.php
index 95822ca..30a5dd4 100644
--- a/maintenance/rebuildall.php
+++ b/maintenance/rebuildall.php
@@ -44,24 +44,24 @@
if ( $this->getDB( DB_REPLICA )->getType() != 'postgres' ) {
$this->output( "** Rebuilding fulltext search index (if you abort "
. "this will break searching; run this script again to fix):\n" );
- $rebuildText = $this->runChild( 'RebuildTextIndex', 'rebuildtextindex.php' );
+ $rebuildText = $this->runChild( RebuildTextIndex::class, 'rebuildtextindex.php' );
$rebuildText->execute();
}

// Rebuild RC
$this->output( "\n\n** Rebuilding recentchanges table:\n" );
- $rebuildRC = $this->runChild( 'RebuildRecentchanges', 'rebuildrecentchanges.php' );
+ $rebuildRC = $this->runChild( RebuildRecentchanges::class, 'rebuildrecentchanges.php' );
$rebuildRC->execute();

// Rebuild link tables
$this->output( "\n\n** Rebuilding links tables -- this can take a long time. "
. "It should be safe to abort via ctrl+C if you get bored.\n" );
- $rebuildLinks = $this->runChild( 'RefreshLinks', 'refreshLinks.php' );
+ $rebuildLinks = $this->runChild( RefreshLinks::class, 'refreshLinks.php' );
$rebuildLinks->execute();

$this->output( "Done.\n" );
}
}

-$maintClass = "RebuildAll";
+$maintClass = RebuildAll::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildmessages.php b/maintenance/rebuildmessages.php
index a47e50d..88eaf67 100644
--- a/maintenance/rebuildmessages.php
+++ b/maintenance/rebuildmessages.php
@@ -53,5 +53,5 @@
}
}

-$maintClass = "RebuildMessages";
+$maintClass = RebuildMessages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildrecentchanges.php b/maintenance/rebuildrecentchanges.php
index bbf91f5..f26d8b3 100644
--- a/maintenance/rebuildrecentchanges.php
+++ b/maintenance/rebuildrecentchanges.php
@@ -495,5 +495,5 @@
}
}

-$maintClass = "RebuildRecentchanges";
+$maintClass = RebuildRecentchanges::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rebuildtextindex.php b/maintenance/rebuildtextindex.php
index 0e41ff3..f06e62b 100644
--- a/maintenance/rebuildtextindex.php
+++ b/maintenance/rebuildtextindex.php
@@ -157,5 +157,5 @@
}
}

-$maintClass = "RebuildTextIndex";
+$maintClass = RebuildTextIndex::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/recountCategories.php b/maintenance/recountCategories.php
index 6a00d57..7e8f063 100644
--- a/maintenance/recountCategories.php
+++ b/maintenance/recountCategories.php
@@ -168,5 +168,5 @@
}
}

-$maintClass = 'RecountCategories';
+$maintClass = RecountCategories::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/refreshFileHeaders.php b/maintenance/refreshFileHeaders.php
index 3bae4b8..db8a19a1 100644
--- a/maintenance/refreshFileHeaders.php
+++ b/maintenance/refreshFileHeaders.php
@@ -152,5 +152,5 @@
}
}

-$maintClass = 'RefreshFileHeaders';
+$maintClass = RefreshFileHeaders::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/refreshImageMetadata.php b/maintenance/refreshImageMetadata.php
index dcfed11..65db94d 100644
--- a/maintenance/refreshImageMetadata.php
+++ b/maintenance/refreshImageMetadata.php
@@ -260,5 +260,5 @@
}
}

-$maintClass = 'RefreshImageMetadata';
+$maintClass = RefreshImageMetadata::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/refreshLinks.php b/maintenance/refreshLinks.php
index 4fab146..9d5d39f 100644
--- a/maintenance/refreshLinks.php
+++ b/maintenance/refreshLinks.php
@@ -489,5 +489,5 @@
}
}

-$maintClass = 'RefreshLinks';
+$maintClass = RefreshLinks::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/removeInvalidEmails.php b/maintenance/removeInvalidEmails.php
index 91025bf..ec68ef2 100644
--- a/maintenance/removeInvalidEmails.php
+++ b/maintenance/removeInvalidEmails.php
@@ -74,5 +74,5 @@
}
}

-$maintClass = 'RemoveInvalidEmails';
+$maintClass = RemoveInvalidEmails::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/removeUnusedAccounts.php b/maintenance/removeUnusedAccounts.php
index 767924f..0910c9c 100644
--- a/maintenance/removeUnusedAccounts.php
+++ b/maintenance/removeUnusedAccounts.php
@@ -131,5 +131,5 @@
}
}

-$maintClass = "RemoveUnusedAccounts";
+$maintClass = RemoveUnusedAccounts::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/renameDbPrefix.php b/maintenance/renameDbPrefix.php
index 6aefc39..af8a280 100644
--- a/maintenance/renameDbPrefix.php
+++ b/maintenance/renameDbPrefix.php
@@ -90,5 +90,5 @@
}
}

-$maintClass = "RenameDbPrefix";
+$maintClass = RenameDbPrefix::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/renderDump.php b/maintenance/renderDump.php
index 458556f..cc5ae59 100644
--- a/maintenance/renderDump.php
+++ b/maintenance/renderDump.php
@@ -123,5 +123,5 @@
}
}

-$maintClass = "DumpRenderer";
+$maintClass = DumpRenderer::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/resetUserEmail.php b/maintenance/resetUserEmail.php
index f59ce6c..d6b4b79 100644
--- a/maintenance/resetUserEmail.php
+++ b/maintenance/resetUserEmail.php
@@ -68,5 +68,5 @@
}
}

-$maintClass = 'ResetUserEmail';
+$maintClass = ResetUserEmail::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/resetUserTokens.php b/maintenance/resetUserTokens.php
index 710198b..235b37f 100644
--- a/maintenance/resetUserTokens.php
+++ b/maintenance/resetUserTokens.php
@@ -116,5 +116,5 @@
}
}

-$maintClass = "ResetUserTokens";
+$maintClass = ResetUserTokens::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/rollbackEdits.php b/maintenance/rollbackEdits.php
index ca9abb1..34bc62b 100644
--- a/maintenance/rollbackEdits.php
+++ b/maintenance/rollbackEdits.php
@@ -111,5 +111,5 @@
}
}

-$maintClass = 'RollbackEdits';
+$maintClass = RollbackEdits::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/runBatchedQuery.php b/maintenance/runBatchedQuery.php
index b0a2b92..64eca95 100644
--- a/maintenance/runBatchedQuery.php
+++ b/maintenance/runBatchedQuery.php
@@ -111,5 +111,5 @@
}
}

-$maintClass = "BatchedQueryRunner";
+$maintClass = BatchedQueryRunner::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php
index 0874538..51c52be 100644
--- a/maintenance/runJobs.php
+++ b/maintenance/runJobs.php
@@ -118,5 +118,5 @@
}
}

-$maintClass = "RunJobs";
+$maintClass = RunJobs::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/shell.php b/maintenance/shell.php
index 75b2e22..c8a8a45 100644
--- a/maintenance/shell.php
+++ b/maintenance/shell.php
@@ -96,5 +96,5 @@

}

-$maintClass = 'MediaWikiShell';
+$maintClass = MediaWikiShell::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php
index 0c68032..b2fde8e 100644
--- a/maintenance/showJobs.php
+++ b/maintenance/showJobs.php
@@ -105,5 +105,5 @@
}
}

-$maintClass = "ShowJobs";
+$maintClass = ShowJobs::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/showSiteStats.php b/maintenance/showSiteStats.php
index 5a15165..08f009b 100644
--- a/maintenance/showSiteStats.php
+++ b/maintenance/showSiteStats.php
@@ -74,5 +74,5 @@
}
}

-$maintClass = "ShowSiteStats";
+$maintClass = ShowSiteStats::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/sql.php b/maintenance/sql.php
index a67b28e..dd05bbe 100644
--- a/maintenance/sql.php
+++ b/maintenance/sql.php
@@ -192,5 +192,5 @@
}
}

-$maintClass = "MwSql";
+$maintClass = MwSql::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/sqlite.php b/maintenance/sqlite.php
index fbde417..5070745 100644
--- a/maintenance/sqlite.php
+++ b/maintenance/sqlite.php
@@ -142,5 +142,5 @@
}
}

-$maintClass = "SqliteMaintenance";
+$maintClass = SqliteMaintenance::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/compressOld.php b/maintenance/storage/compressOld.php
index 4d56ef0..4414c5b 100644
--- a/maintenance/storage/compressOld.php
+++ b/maintenance/storage/compressOld.php
@@ -471,5 +471,5 @@
}
}

-$maintClass = 'CompressOld';
+$maintClass = CompressOld::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/dumpRev.php b/maintenance/storage/dumpRev.php
index d39acd4..5a537aa 100644
--- a/maintenance/storage/dumpRev.php
+++ b/maintenance/storage/dumpRev.php
@@ -84,5 +84,5 @@
}
}

-$maintClass = "DumpRev";
+$maintClass = DumpRev::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/fixT22757.php b/maintenance/storage/fixT22757.php
index e8bd23d..f6aa19b 100644
--- a/maintenance/storage/fixT22757.php
+++ b/maintenance/storage/fixT22757.php
@@ -345,5 +345,5 @@
}
}

-$maintClass = 'FixT22757';
+$maintClass = FixT22757::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/orphanStats.php b/maintenance/storage/orphanStats.php
index eb72915..4feb95e 100644
--- a/maintenance/storage/orphanStats.php
+++ b/maintenance/storage/orphanStats.php
@@ -80,5 +80,5 @@
}
}

-$maintClass = "OrphanStats";
+$maintClass = OrphanStats::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/recompressTracked.php b/maintenance/storage/recompressTracked.php
index c5dd53b..2a92140 100644
--- a/maintenance/storage/recompressTracked.php
+++ b/maintenance/storage/recompressTracked.php
@@ -114,8 +114,8 @@
$GLOBALS['wgDebugLogPrefix'] = "RCT {$this->replicaId}: ";
}
$this->pageBlobClass = function_exists( 'xdiff_string_bdiff' ) ?
- 'DiffHistoryBlob' : 'ConcatenatedGzipHistoryBlob';
- $this->orphanBlobClass = 'ConcatenatedGzipHistoryBlob';
+ DiffHistoryBlob::class : ConcatenatedGzipHistoryBlob::class;
+ $this->orphanBlobClass = ConcatenatedGzipHistoryBlob::class;
}

function debug( $msg ) {
diff --git a/maintenance/storage/storageTypeStats.php b/maintenance/storage/storageTypeStats.php
index c23f508..6dee1a5 100644
--- a/maintenance/storage/storageTypeStats.php
+++ b/maintenance/storage/storageTypeStats.php
@@ -111,5 +111,5 @@
}
}

-$maintClass = 'StorageTypeStats';
+$maintClass = StorageTypeStats::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/storage/testCompression.php b/maintenance/storage/testCompression.php
index 028f11c..c3ed4fc 100644
--- a/maintenance/storage/testCompression.php
+++ b/maintenance/storage/testCompression.php
@@ -45,7 +45,7 @@
$limit = 1000;
$untilHappy = true;
}
-$type = isset( $options['type'] ) ? $options['type'] : 'ConcatenatedGzipHistoryBlob';
+$type = isset( $options['type'] ) ? $options['type'] : ConcatenatedGzipHistoryBlob::class;

$dbr = $this->getDB( DB_REPLICA );
$revQuery = Revision::getQueryInfo( [ 'page', 'text' ] );
diff --git a/maintenance/syncFileBackend.php b/maintenance/syncFileBackend.php
index 68afde7..49627c3 100644
--- a/maintenance/syncFileBackend.php
+++ b/maintenance/syncFileBackend.php
@@ -303,5 +303,5 @@
}
}

-$maintClass = "SyncFileBackend";
+$maintClass = SyncFileBackend::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/tidyUpBug37714.php b/maintenance/tidyUpBug37714.php
index 9d7cc0e..0dd0341 100644
--- a/maintenance/tidyUpBug37714.php
+++ b/maintenance/tidyUpBug37714.php
@@ -44,5 +44,5 @@
}
}

-$maintClass = 'TidyUpBug37714';
+$maintClass = TidyUpBug37714::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/undelete.php b/maintenance/undelete.php
index 278b68d..e9b2abd 100644
--- a/maintenance/undelete.php
+++ b/maintenance/undelete.php
@@ -58,5 +58,5 @@
}
}

-$maintClass = "Undelete";
+$maintClass = Undelete::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/update.php b/maintenance/update.php
index e60efdb..c780b6a 100755
--- a/maintenance/update.php
+++ b/maintenance/update.php
@@ -131,7 +131,7 @@

// Check external dependencies are up to date
if ( !$this->hasOption( 'skip-external-dependencies' ) ) {
- $composerLockUpToDate = $this->runChild( 'CheckComposerLockUpToDate' );
+ $composerLockUpToDate = $this->runChild( CheckComposerLockUpToDate::class );
$composerLockUpToDate->execute();
} else {
$this->output(
@@ -233,13 +233,13 @@
# This needs to be disabled early since extensions will try to use the l10n
# cache from $wgExtensionFunctions (T22471)
$wgLocalisationCacheConf = [.
- 'class' => 'LocalisationCache',
- 'storeClass' => 'LCStoreNull',
+ 'class' => LocalisationCache::class,
+ 'storeClass' => LCStoreNull::class,
'storeDirectory' => false,
'manualRecache' => false,
];
}
}

-$maintClass = 'UpdateMediaWiki';
+$maintClass = UpdateMediaWiki::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateArticleCount.php b/maintenance/updateArticleCount.php
index 213195d..c72e74f 100644
--- a/maintenance/updateArticleCount.php
+++ b/maintenance/updateArticleCount.php
@@ -69,5 +69,5 @@
}
}

-$maintClass = "UpdateArticleCount";
+$maintClass = UpdateArticleCount::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateCollation.php b/maintenance/updateCollation.php
index 84fc2d2..63176cb 100644
--- a/maintenance/updateCollation.php
+++ b/maintenance/updateCollation.php
@@ -344,5 +344,5 @@
}
}

-$maintClass = "UpdateCollation";
+$maintClass = UpdateCollation::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateDoubleWidthSearch.php b/maintenance/updateDoubleWidthSearch.php
index 12056c8..810af57 100644
--- a/maintenance/updateDoubleWidthSearch.php
+++ b/maintenance/updateDoubleWidthSearch.php
@@ -77,5 +77,5 @@
}
}

-$maintClass = "UpdateDoubleWidthSearch";
+$maintClass = UpdateDoubleWidthSearch::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateExtensionJsonSchema.php b/maintenance/updateExtensionJsonSchema.php
index 264f4be..6233d5b 100644
--- a/maintenance/updateExtensionJsonSchema.php
+++ b/maintenance/updateExtensionJsonSchema.php
@@ -65,5 +65,5 @@
}
}

-$maintClass = 'UpdateExtensionJsonSchema';
+$maintClass = UpdateExtensionJsonSchema::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateRestrictions.php b/maintenance/updateRestrictions.php
index c4dccbc..cb40af3 100644
--- a/maintenance/updateRestrictions.php
+++ b/maintenance/updateRestrictions.php
@@ -126,5 +126,5 @@
}
}

-$maintClass = "UpdateRestrictions";
+$maintClass = UpdateRestrictions::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateSearchIndex.php b/maintenance/updateSearchIndex.php
index cdb7d9f..af2d828 100644
--- a/maintenance/updateSearchIndex.php
+++ b/maintenance/updateSearchIndex.php
@@ -121,5 +121,5 @@
}
}

-$maintClass = "UpdateSearchIndex";
+$maintClass = UpdateSearchIndex::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php
index 58f23df..1c6f9b3 100644
--- a/maintenance/updateSpecialPages.php
+++ b/maintenance/updateSpecialPages.php
@@ -170,5 +170,5 @@
}
}

-$maintClass = "UpdateSpecialPages";
+$maintClass = UpdateSpecialPages::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/userOptions.php b/maintenance/userOptions.php
index eb8da57..4c9dcb4 100644
--- a/maintenance/userOptions.php
+++ b/maintenance/userOptions.php
@@ -199,5 +199,5 @@
}
}

-$maintClass = 'UserOptionsMaintenance';
+$maintClass = UserOptionsMaintenance::class;
require RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/validateRegistrationFile.php b/maintenance/validateRegistrationFile.php
index ea27a7e..4b07796 100644
--- a/maintenance/validateRegistrationFile.php
+++ b/maintenance/validateRegistrationFile.php
@@ -22,5 +22,5 @@
}
}

-$maintClass = 'ValidateRegistrationFile';
+$maintClass = ValidateRegistrationFile::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/view.php b/maintenance/view.php
index 8c0237f..952b825 100644
--- a/maintenance/view.php
+++ b/maintenance/view.php
@@ -55,5 +55,5 @@
}
}

-$maintClass = "ViewCLI";
+$maintClass = ViewCLI::class;
require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/wrapOldPasswords.php b/maintenance/wrapOldPasswords.php
index 94bd3cb..1fc0f37 100644
--- a/maintenance/wrapOldPasswords.php
+++ b/maintenance/wrapOldPasswords.php
@@ -121,5 +121,5 @@
}
}

-$maintClass = "WrapOldPasswords";
+$maintClass = WrapOldPasswords::class;
require_once RUN_MAINTENANCE_IF_MAIN;

--
To view, visit https://gerrit.wikimedia.org/r/404061
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1d4567f47f93eb1436cb98558388e48d35258666
Gerrit-PatchSet: 8
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de.wp@web.de>
Gerrit-Reviewer: Aaron Schulz <aschulz@wikimedia.org>
Gerrit-Reviewer: Awight <awight@wikimedia.org>
Gerrit-Reviewer: Krinkle <krinklemail@gmail.com>
Gerrit-Reviewer: Thiemo Kreuz (WMDE) <thiemo.kreuz@wikimedia.de>
Gerrit-Reviewer: Umherirrender <umherirrender_de.wp@web.de>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits