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

Change subject: Replace deprecated suppress warning methods
......................................................................


Replace deprecated suppress warning methods

Change-Id: Ia309676a04c411b9bfc2f9060db1fd72c2fb2e5b
---
M maintenance/FlowUpdateRecentChanges.php
M tests/phpunit/Formatter/FormatterTest.php
2 files changed, 4 insertions(+), 4 deletions(-)

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



diff --git a/maintenance/FlowUpdateRecentChanges.php 
b/maintenance/FlowUpdateRecentChanges.php
index 6eb79c7..917a7b3 100644
--- a/maintenance/FlowUpdateRecentChanges.php
+++ b/maintenance/FlowUpdateRecentChanges.php
@@ -68,9 +68,9 @@
                        $continue = $row->rc_id;
 
                        // build params
-                       wfSuppressWarnings();
+                       MediaWiki\suppressWarnings();
                        $params = unserialize( $row->rc_params );
-                       wfRestoreWarnings();
+                       MediaWiki\restoreWarnings();
                        if ( !$params ) {
                                $params = array();
                        }
diff --git a/tests/phpunit/Formatter/FormatterTest.php 
b/tests/phpunit/Formatter/FormatterTest.php
index e1e544a..ebbe14a 100644
--- a/tests/phpunit/Formatter/FormatterTest.php
+++ b/tests/phpunit/Formatter/FormatterTest.php
@@ -70,9 +70,9 @@
 
                // Code uses wfWarn as a louder wfDebugLog in error conditions.
                // but phpunit considers a warning a fail.
-               wfSuppressWarnings();
+               \MediaWiki\suppressWarnings();
                $links = $this->createFormatter( 
'Flow\Formatter\CheckUserFormatter' )->format( $row, $ctx );
-               wfRestoreWarnings();
+               \MediaWiki\restoreWarnings();
                $test( $this, $message, $links );
        }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia309676a04c411b9bfc2f9060db1fd72c2fb2e5b
Gerrit-PatchSet: 5
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to