jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/352231 )

Change subject: Don't use deprecated class
......................................................................


Don't use deprecated class

Change-Id: I81092c3f262f0db5f341a4f72210fada2a27eb88
---
M includes/Dump/Exporter.php
M includes/Formatter/RevisionFormatter.php
M includes/Import/SourceStore/FlowRevisionsDb.php
M includes/Model/UUID.php
M maintenance/FlowFixWorkflowLastUpdateTimestamp.php
5 files changed, 7 insertions(+), 4 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/Dump/Exporter.php b/includes/Dump/Exporter.php
index 948b07f..50c46c8 100644
--- a/includes/Dump/Exporter.php
+++ b/includes/Dump/Exporter.php
@@ -18,10 +18,10 @@
 use Flow\Search\Iterators\HeaderIterator;
 use Flow\Search\Iterators\TopicIterator;
 use ReflectionProperty;
-use TimestampException;
 use User;
 use WikiExporter;
 use Xml;
+use Wikimedia\Timestamp\TimestampException;
 
 class Exporter extends WikiExporter {
        /**
diff --git a/includes/Formatter/RevisionFormatter.php 
b/includes/Formatter/RevisionFormatter.php
index cec6803..c2aae6f 100644
--- a/includes/Formatter/RevisionFormatter.php
+++ b/includes/Formatter/RevisionFormatter.php
@@ -19,6 +19,7 @@
 use GenderCache;
 use IContextSource;
 use Message;
+use Wikimedia\Timestamp\TimestampException;
 
 /**
  * This implements a serializer for converting revision objects
@@ -191,7 +192,7 @@
         * @throws PermissionException
         * @throws \Exception
         * @throws \Flow\Exception\InvalidInputException
-        * @throws \TimestampException
+        * @throws TimestampException
         */
        public function formatApi( FormatterRow $row, IContextSource $ctx, 
$action = 'view' ) {
                $this->permissions->setUser( $ctx->getUser() );
diff --git a/includes/Import/SourceStore/FlowRevisionsDb.php 
b/includes/Import/SourceStore/FlowRevisionsDb.php
index 574a1b6..84822ed 100644
--- a/includes/Import/SourceStore/FlowRevisionsDb.php
+++ b/includes/Import/SourceStore/FlowRevisionsDb.php
@@ -15,6 +15,7 @@
 use Flow\Model\UUID;
 use MWTimestamp;
 use User;
+use Wikimedia\Timestamp\TimestampException;
 
 /**
  * Unlike other source stores, this doesn't really "store" anything. This just
@@ -152,7 +153,7 @@
         *
         * @param MWTimestamp $timestamp
         * @return UUID[] [min, max]
-        * @throws \TimestampException
+        * @throws TimestampException
         */
        protected function getUUIDRange( MWTimestamp $timestamp ) {
                return array(
diff --git a/includes/Model/UUID.php b/includes/Model/UUID.php
index f33759e..ca1c2c4 100644
--- a/includes/Model/UUID.php
+++ b/includes/Model/UUID.php
@@ -10,8 +10,8 @@
 use Flow\Exception\InvalidInputException;
 use Language;
 use MWTimestamp;
-use TimestampException;
 use User;
+use Wikimedia\Timestamp\TimestampException;
 
 /**
  * Immutable class modeling timestamped UUID's from
diff --git a/maintenance/FlowFixWorkflowLastUpdateTimestamp.php 
b/maintenance/FlowFixWorkflowLastUpdateTimestamp.php
index db2991f..caf4ae2 100644
--- a/maintenance/FlowFixWorkflowLastUpdateTimestamp.php
+++ b/maintenance/FlowFixWorkflowLastUpdateTimestamp.php
@@ -8,6 +8,7 @@
 use Flow\Model\UUID;
 use Flow\Model\Workflow;
 use Flow\Repository\RootPostLoader;
+use Wikimedia\Timestamp\TimestampException;
 
 $IP = getenv( 'MW_INSTALL_PATH' );
 if ( $IP === false ) {

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I81092c3f262f0db5f341a4f72210fada2a27eb88
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Matthias Mullie <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to