Merge "Hard deprecate ParserOutput::{get,set}CategoryLinks()"

This commit is contained in:
jenkins-bot 2021-10-15 17:59:20 +00:00 committed by Gerrit Code Review
commit 6442290b4e
2 changed files with 9 additions and 8 deletions

View file

@ -221,7 +221,6 @@ because of Phabricator reports.
- ::setProperty() - use ::setPageProperty()
- ::unsetProperty() - use ::unsetPageProperties()
- ::getProperties() - use ::getPageProperties()
* The following methods from the ParserOutput class were deprecated:
- ::getCategoryLinks() - use ::getCategoryNames()
- ::setCategoryLinks() - use ::setCategories()
* The following methods were deprecated; use ::setPreventClickjacking() instead:

View file

@ -602,6 +602,7 @@ class ParserOutput extends CacheTime {
* @deprecated since 1.38, use ::getCategoryNames() instead.
*/
public function getCategoryLinks() {
wfDeprecated( __METHOD__, '1.38' );
return $this->getCategoryNames();
}
@ -770,6 +771,7 @@ class ParserOutput extends CacheTime {
* @deprecated since 1.38, use ::setCategories() instead.
*/
public function setCategoryLinks( $cl ) {
wfDeprecated( __METHOD__, '1.38' );
return wfSetVar( $this->mCategories, $cl );
}