From da9cf2df1ae30265c991dfad3fd0bce8dd388afc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thiemo=20M=C3=A4ttig?= Date: Mon, 14 Mar 2016 16:54:50 +0100 Subject: [PATCH] =?utf8?q?Make=20use=20of=20=E2=80=A6::class=20feature=20i?= =?utf8?q?n=20ContentHandler/DatabaseUpdater?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: Ic0d51a41c50f52e1fbdab58e3b63319caa5c7d1d --- includes/content/ContentHandler.php | 2 +- includes/installer/DatabaseUpdater.php | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/includes/content/ContentHandler.php b/includes/content/ContentHandler.php index 9ab11f3b68..c0bd725761 100644 --- a/includes/content/ContentHandler.php +++ b/includes/content/ContentHandler.php @@ -777,7 +777,7 @@ abstract class ContentHandler { * @return string */ protected function getDiffEngineClass() { - return 'DifferenceEngine'; + return DifferenceEngine::class; } /** diff --git a/includes/installer/DatabaseUpdater.php b/includes/installer/DatabaseUpdater.php index 03f091bd08..6a20abc902 100644 --- a/includes/installer/DatabaseUpdater.php +++ b/includes/installer/DatabaseUpdater.php @@ -63,18 +63,18 @@ abstract class DatabaseUpdater { protected $shared = false; /** - * Scripts to run after database update + * @var string[] Scripts to run after database update * Should be a subclass of LoggedUpdateMaintenance */ protected $postDatabaseUpdateMaintenance = [ - 'DeleteDefaultMessages', - 'PopulateRevisionLength', - 'PopulateRevisionSha1', - 'PopulateImageSha1', - 'FixExtLinksProtocolRelative', - 'PopulateFilearchiveSha1', - 'PopulateBacklinkNamespace', - 'FixDefaultJsonContentPages' + DeleteDefaultMessages::class, + PopulateRevisionLength::class, + PopulateRevisionSha1::class, + PopulateImageSha1::class, + FixExtLinksProtocolRelative::class, + PopulateFilearchiveSha1::class, + PopulateBacklinkNamespace::class, + FixDefaultJsonContentPages::class, ]; /** @@ -375,7 +375,7 @@ abstract class DatabaseUpdater { /** * @since 1.17 * - * @return array + * @return string[] */ public function getPostDatabaseUpdateMaintenance() { return $this->postDatabaseUpdateMaintenance; -- 2.20.1