8000 [Console] reduced visibility to protected · MattKetmo/symfony@d13dce0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d13dce0

Browse files
committed
[Console] reduced visibility to protected
1 parent b84b46b commit d13dce0

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)
0