diff options
author | C. Scott Ananian <cscott@cscott.net> | 2024-02-09 17:27:00 -0500 |
---|---|---|
committer | C. Scott Ananian <cananian@wikimedia.org> | 2024-02-20 17:13:28 +0000 |
commit | 72c4945a724267ba65d3df08ea34bbbf1aa59aa7 (patch) | |
tree | c2fdee1b1b8c17bbda574244ecd06abb3c82c071 /RELEASE-NOTES-1.42 | |
parent | 6039650aedcf902c69b36e6587ca6227ead71903 (diff) | |
download | mediawikicore-72c4945a724267ba65d3df08ea34bbbf1aa59aa7.tar.gz mediawikicore-72c4945a724267ba65d3df08ea34bbbf1aa59aa7.zip |
[ParserOutput] Rename $mText to $mRawText and ::setText() to ::setRawText()
ParserOutput::getText() is not a simple getter, but does
transformations on the "text" of the ParserOutput; the simple getter
is named ::getRawText().
To maintain consistency, rename ParserOutput::setText() to
::setRawText() and the property name ParserOutput::$mText to
::$mRawText so future readers are not confused.
The JSON property name as it appears in the serialized ParserCache
is left as 'Text' so that we don't have any forward- or backward-
rollback issues.
Change-Id: I3ef34814ab9473cc70d0a6806e8c5a4a02b73491
Diffstat (limited to 'RELEASE-NOTES-1.42')
-rw-r--r-- | RELEASE-NOTES-1.42 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/RELEASE-NOTES-1.42 b/RELEASE-NOTES-1.42 index 2222a2aa44a3..48c2c04c4e32 100644 --- a/RELEASE-NOTES-1.42 +++ b/RELEASE-NOTES-1.42 @@ -592,6 +592,8 @@ because of Phabricator reports. * ParserOutput::setLanguageLinks() has been deprecated. * ParserOutput::getTimestamp() and ::setTimestamp() have been deprecated; use ::getRevisionTimestamp() and ::setRevisionTimestamp() instead. +* ParserOutput::setText() has been deprecated; use ::setRawText() instead which + matches the name of the corresponding getter, ParserOutput::getRawText(). * ApiQueryBlockInfoTrait::addBlockInfoToQuery() will emit deprecation warnings and will soon stop working due to schema changes. Instead use addDeletedUserFilter() or getBlockDetailsForRows(). |