Replace usages of Wikimedia\(suppress|restore)Warnings()

Change-Id: Iac7480957819652d487e177bc9caf0c8c3db83e4
This commit is contained in:
Reedy 2022-02-24 21:18:30 +00:00
parent e3ef5d1619
commit 211c1cb930

View file

@ -7,6 +7,7 @@ use DatabaseUpdater;
use FormatJson; use FormatJson;
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use Wikimedia; use Wikimedia;
use Wikimedia\AtEase\AtEase;
use Wikimedia\Rdbms\IDatabase; use Wikimedia\Rdbms\IDatabase;
class UpdateTables { class UpdateTables {
@ -313,9 +314,9 @@ class UpdateTables {
); );
foreach ( $res as $row ) { foreach ( $res as $row ) {
Wikimedia\suppressWarnings(); AtEase::suppressWarnings();
$scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) ); $scratchTokens = unserialize( base64_decode( $row->scratch_tokens ) );
Wikimedia\restoreWarnings(); AtEase::restoreWarnings();
if ( $scratchTokens ) { if ( $scratchTokens ) {
$db->update( $db->update(
'oathauth_users', 'oathauth_users',