Skip to content

Commit 3bb7dc0

Browse files
committed
merged branch kriswallsmith/console-visibility (PR symfony#4526)
Commits ------- d13dce0 [Console] reduced visibility to protected Discussion ---------- [Console] reduced visibility to protected This is an internal method and should be cast as such. --------------------------------------------------------------------------- by travisbot at 2012-06-08T21:27:13Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1571579) (merged d13dce0 into b84b46b).
2 parents b84b46b + d13dce0 commit 3bb7dc0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Symfony/Component/Console/Output/NullOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class NullOutput extends Output
2828
* @param string $message A message to write to the output
2929
* @param Boolean $newline Whether to add a newline or not
3030
*/
31-
public function doWrite($message, $newline)
31+
protected function doWrite($message, $newline)
3232
{
3333
}
3434
}

src/Symfony/Component/Console/Output/Output.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,5 +176,5 @@ public function write($messages, $newline = false, $type = 0)
176176
* @param string $message A message to write to the output
177177
* @param Boolean $newline Whether to add a newline or not
178178
*/
179-
abstract public function doWrite($message, $newline);
179+
abstract protected function doWrite($message, $newline);
180180
}

src/Symfony/Component/Console/Output/StreamOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function getStream()
7878
*
7979
* @throws \RuntimeException When unable to write output (should never happen)
8080
*/
81-
public function doWrite($message, $newline)
81+
protected function doWrite($message, $newline)
8282
{
8383
if (false === @fwrite($this->stream, $message.($newline ? PHP_EOL : ''))) {
8484
// @codeCoverageIgnoreStart

src/Symfony/Component/Console/Tests/Output/OutputTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function clear()
9494
$this->output = '';
9595
}
9696

97-
public function doWrite($message, $newline)
97+
protected function doWrite($message, $newline)
9898
{
9999
$this->output .= $message.($newline ? "\n" : '');
100100
}

0 commit comments

Comments
 (0)