diff options
author | Kevin Israel <pleasestand@live.com> | 2016-07-14 06:28:16 -0400 |
---|---|---|
committer | Kevin Israel <pleasestand@live.com> | 2016-07-14 06:28:16 -0400 |
commit | be46ffa771e9bc6b09526b8acfd09d468987f91e (patch) | |
tree | 0f3a7ae8b0d5736790cb4f03f08431d1b1c61fe7 /includes/export/DumpStringOutput.php | |
parent | 1a7bde454ea4e0825e48037fba66638b4e967333 (diff) | |
download | mediawikicore-be46ffa771e9bc6b09526b8acfd09d468987f91e.tar.gz mediawikicore-be46ffa771e9bc6b09526b8acfd09d468987f91e.zip |
DumpStringOutput: Rename getOutput() to __toString()
Though getOutput() is what first came to mind, I do not particularly
like the name, partly because it is used in many, many places as a
method that returns an OutputPage object.
* Renamed the method to __toString(). This is appropriate because
each instance, at any given time, corresponds to a single string
value (and exceptions cannot occur during this conversion).
* Removed unnecessary variables from ApiQuery and ExportTest. In
these and most other cases, it should no longer be necessary to
call getOutput() explicitly.
Change-Id: Icf202743d1f332f8981338f42eb6e3e5a04abdf1
Diffstat (limited to 'includes/export/DumpStringOutput.php')
-rw-r--r-- | includes/export/DumpStringOutput.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/export/DumpStringOutput.php b/includes/export/DumpStringOutput.php index 5168225179b1..837a62d62842 100644 --- a/includes/export/DumpStringOutput.php +++ b/includes/export/DumpStringOutput.php @@ -39,7 +39,7 @@ class DumpStringOutput extends DumpOutput { * * @return string */ - public function getOutput() { + public function __toString() { return $this->output; } } |