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

Change-Id: I5ef62930f0d4f9522de16b6271f084bc7cc77efe
This commit is contained in:
Reedy 2022-02-24 21:17:28 +00:00
parent 7794f9e6a5
commit 32ec2ae33b

View file

@ -1,6 +1,7 @@
<?php <?php
use MediaWiki\MediaWikiServices; use MediaWiki\MediaWikiServices;
use Wikimedia\AtEase\AtEase;
class RSSParser { class RSSParser {
protected $maxheads = 32; protected $maxheads = 32;
@ -567,7 +568,7 @@ class RSSParser {
return Status::newFatal( 'rss-parse-error', 'No XML content' ); return Status::newFatal( 'rss-parse-error', 'No XML content' );
} }
Wikimedia\suppressWarnings(); AtEase::suppressWarnings();
$oldDisable = false; $oldDisable = false;
if ( LIBXML_VERSION < 20900 ) { if ( LIBXML_VERSION < 20900 ) {
@ -579,7 +580,7 @@ class RSSParser {
libxml_disable_entity_loader( $oldDisable ); libxml_disable_entity_loader( $oldDisable );
} }
Wikimedia\restoreWarnings(); AtEase::restoreWarnings();
$this->rss = new RSSData( $this->xml ); $this->rss = new RSSData( $this->xml );