Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/371632 )

Change subject: Use non-deprecated namespaced ScopedCallback
......................................................................

Use non-deprecated namespaced ScopedCallback

Change-Id: Id336c142b57955b7d221735313bd7e828347172c
---
M includes/Mechanism.php
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ParserMigration 
refs/changes/32/371632/1

diff --git a/includes/Mechanism.php b/includes/Mechanism.php
index c4c0810..2770eec 100644
--- a/includes/Mechanism.php
+++ b/includes/Mechanism.php
@@ -2,6 +2,8 @@
 
 namespace MediaWiki\ParserMigration;
 
+use Wikimedia\ScopedCallback;
+
 class Mechanism {
        public $tidiers;
 
@@ -19,7 +21,7 @@
                $options->setTidy( false );
                $scopedCallback = $options->setupFakeRevision( $title, 
$content, $user );
                $parserOutput = $content->getParserOutput( $title, null, 
$options );
-               \ScopedCallback::consume( $scopedCallback );
+               ScopedCallback::consume( $scopedCallback );
 
                $outputs = [];
                foreach ( $configIndexes as $i ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id336c142b57955b7d221735313bd7e828347172c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ParserMigration
Gerrit-Branch: master
Gerrit-Owner: Legoktm <lego...@member.fsf.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to