The ParserOutput::getCategories() method return a reference to an internal private property, as well as exposing a caller 'gotcha' in so far as numeric category names are stored as 'int' not 'string' in the array keys.
Description
Description
Details
Details
Event Timeline
Comment Actions
Change 896361 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):
[mediawiki/core@master] Deprecate ParserOutput::getCategories()
Comment Actions
Change 896361 merged by jenkins-bot:
[mediawiki/core@master] Deprecate ParserOutput::getCategories()
Comment Actions
Change 904054 had a related patch set uploaded (by Wangombe; author: Wangombe):
[mediawiki/extensions/Translate@master] Update deprecated ParserOutput::getCategories()
Comment Actions
Change 904054 merged by jenkins-bot:
[mediawiki/extensions/Translate@master] Update deprecated ParserOutput::getCategories()