aboutsummaryrefslogtreecommitdiffstats
path: root/maintenance
diff options
context:
space:
mode:
authorJames D. Forrester <jforrester@wikimedia.org>2025-03-19 15:43:54 -0400
committerJames D. Forrester <jforrester@wikimedia.org>2025-03-25 08:54:12 -0400
commit361a7dec6e4c49027888ce16ebaf40b5cfc75b29 (patch)
treea44d8d10ae268f0908feee467c22c9bf6c1a5936 /maintenance
parent3b74a1c5df40e1c24f7abea4eb0b221c69af32da (diff)
downloadmediawikicore-361a7dec6e4c49027888ce16ebaf40b5cfc75b29.tar.gz
mediawikicore-361a7dec6e4c49027888ce16ebaf40b5cfc75b29.zip
Namespace all remaining files in includes/exception
In MediaWiki/Exception, to follow PSR-4 per plural vs. singular (this can be changed later if people really care). Also, move the couple of exceptions in here that were already namespaced in the MW-top-level into the new space. Bug: T353458 Change-Id: I12ed850ae99effb699a6d7ada173f54e72f0570e
Diffstat (limited to 'maintenance')
-rw-r--r--maintenance/includes/TextPassDumper.php4
-rw-r--r--maintenance/rebuildtextindex.php1
2 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/includes/TextPassDumper.php b/maintenance/includes/TextPassDumper.php
index bbe896ca31f5..0b82b17944ee 100644
--- a/maintenance/includes/TextPassDumper.php
+++ b/maintenance/includes/TextPassDumper.php
@@ -35,6 +35,8 @@ require_once __DIR__ . '/../../includes/export/WikiExporter.php';
use BaseDump;
use Exception;
use ExportProgressFilter;
+use MediaWiki\Exception\MWException;
+use MediaWiki\Exception\MWUnknownContentModelException;
use MediaWiki\Revision\RevisionStore;
use MediaWiki\Revision\SlotRecord;
use MediaWiki\Settings\SettingsBuilder;
@@ -44,8 +46,6 @@ use MediaWiki\Storage\BlobStore;
use MediaWiki\Storage\SqlBlobStore;
use MediaWiki\WikiMap\WikiMap;
use MediaWiki\Xml\Xml;
-use MWException;
-use MWUnknownContentModelException;
use RuntimeException;
use WikiExporter;
use Wikimedia\AtEase\AtEase;
diff --git a/maintenance/rebuildtextindex.php b/maintenance/rebuildtextindex.php
index 15afa3ce89f5..186dbc15ec85 100644
--- a/maintenance/rebuildtextindex.php
+++ b/maintenance/rebuildtextindex.php
@@ -22,6 +22,7 @@
require_once __DIR__ . '/Maintenance.php';
// @codeCoverageIgnoreEnd
+use MediaWiki\Exception\MWContentSerializationException;
use MediaWiki\Maintenance\Maintenance;
use MediaWiki\Revision\SlotRecord;
use MediaWiki\Search\SearchUpdate;