Merge "Hard deprecate ParserOutput::addWarning()"
This commit is contained in:
commit
45e438e36a
2 changed files with 2 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue