Merge "Hard deprecate ParserOutput::addWarning()"

This commit is contained in:
jenkins-bot 2021-10-16 01:37:44 +00:00 committed by Gerrit Code Review
commit 45e438e36a
2 changed files with 2 additions and 1 deletions

View file

@ -226,11 +226,11 @@ because of Phabricator reports.
- ::setCategoryLinks() - use ::setCategories()
- ::addTrackingCategory() - use Parser::addTrackingCategory()
or TrackingCategories::addTrackingCategory()
- ::addWarning() - use ::addWarningMsg()
* The following methods from the ParserOutput class were deprecated:
- ::getFlag() - use ::getOutputFlag()
- ::setFlag() - use ::setOutputFlag()
- ::getAllFlags() - this method is now marked @internal
- ::addWarning() - use ::addWarningMsg()
* The following methods were deprecated; use ::setPreventClickjacking(..)
instead:
- OutputPage::preventClickjacking()

View file

@ -842,6 +842,7 @@ class ParserOutput extends CacheTime {
* @deprecated since 1.38; use ::addWarningMsg() instead
*/
public function addWarning( $s ) {
wfDeprecated( __METHOD__, '1.38' );
$this->mWarnings[$s] = 1;
}