WMDE-Fisch has uploaded a new change for review. (
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, 5 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow
refs/changes/18/337818/1
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..ed4f7d9 100644
--- a/tests/phpunit/Formatter/FormatterTest.php
+++ b/tests/phpunit/Formatter/FormatterTest.php
@@ -7,6 +7,7 @@
use Flow\Formatter\RevisionFormatter;
use Flow\Model\UUID;
use Flow\Tests\FlowTestCase;
+use Flow\Tests\Parsoid\Fixer\MethodReturnsConstraint;
use Flow\UrlGenerator;
use Title;
@@ -70,9 +71,9 @@
// Code uses wfWarn as a louder wfDebugLog in error conditions.
// but phpunit considers a warning a fail.
- wfSuppressWarnings();
+ MediaWiki\supressWarnings();
$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: newchange
Gerrit-Change-Id: Ia309676a04c411b9bfc2f9060db1fd72c2fb2e5b
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: WMDE-Fisch <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits