From a2f68a58cd006d449c79e79d27087a99fb4e1ad4 Mon Sep 17 00:00:00 2001 From: WMDE-Fisch Date: Tue, 14 Nov 2017 11:32:59 +0100 Subject: [PATCH] Add missing @throws in Importers Change-Id: I02760e59d73f4278cca87483ab4578b6e76b2324 --- includes/import/WikiImporter.php | 2 ++ maintenance/importDump.php | 1 + 2 files changed, 3 insertions(+) diff --git a/includes/import/WikiImporter.php b/includes/import/WikiImporter.php index a1f7e0c002..822893c583 100644 --- a/includes/import/WikiImporter.php +++ b/includes/import/WikiImporter.php @@ -546,6 +546,7 @@ class WikiImporter { /** * Primary entry point + * @throws Exception * @throws MWException * @return bool */ @@ -847,6 +848,7 @@ class WikiImporter { /** * @param array $pageInfo * @param array $revisionInfo + * @throws MWException * @return bool|mixed */ private function processRevision( $pageInfo, $revisionInfo ) { diff --git a/maintenance/importDump.php b/maintenance/importDump.php index 206c7ee6ae..cc0daa1542 100644 --- a/maintenance/importDump.php +++ b/maintenance/importDump.php @@ -139,6 +139,7 @@ TEXT /** * @param Title|Revision $obj + * @throws MWException * @return bool */ private function skippedNamespace( $obj ) { -- 2.20.1