From da682f78acdf81b73ae5d72dd5ab85b40f42aca0 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 3 Mar 2019 01:41:40 +0100 Subject: [PATCH] Use ::class for class name resolution Available since php5.5 Change-Id: Ie60465484858867d507081dfe5a305c6ab0599de --- maintenance/addMissingLoggingEntries.php | 2 +- maintenance/normalizeThrottleParameters.php | 2 +- maintenance/purgeOldLogIPData.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/addMissingLoggingEntries.php b/maintenance/addMissingLoggingEntries.php index 3a4d8658a..88c93bd4b 100644 --- a/maintenance/addMissingLoggingEntries.php +++ b/maintenance/addMissingLoggingEntries.php @@ -99,5 +99,5 @@ class AddMissingLoggingEntries extends Maintenance { } } -$maintClass = 'AddMissingLoggingEntries'; +$maintClass = AddMissingLoggingEntries::class; require_once RUN_MAINTENANCE_IF_MAIN; diff --git a/maintenance/normalizeThrottleParameters.php b/maintenance/normalizeThrottleParameters.php index f71380a6f..a08e2b31b 100644 --- a/maintenance/normalizeThrottleParameters.php +++ b/maintenance/normalizeThrottleParameters.php @@ -400,5 +400,5 @@ class NormalizeThrottleParameters extends LoggedUpdateMaintenance { } } -$maintClass = 'NormalizeThrottleParameters'; +$maintClass = NormalizeThrottleParameters::class; require_once RUN_MAINTENANCE_IF_MAIN; diff --git a/maintenance/purgeOldLogIPData.php b/maintenance/purgeOldLogIPData.php index 10f000fe9..406210c6b 100644 --- a/maintenance/purgeOldLogIPData.php +++ b/maintenance/purgeOldLogIPData.php @@ -58,5 +58,5 @@ class PurgeOldLogIPData extends Maintenance { } -$maintClass = "PurgeOldLogIPData"; +$maintClass = PurgeOldLogIPData::class; require_once RUN_MAINTENANCE_IF_MAIN;