8000 [Console] the default type value should use the constant in OutputInt… · richsage/symfony@2628d88 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2628d88

Browse files
committed
[Console] the default type value should use the constant in OutputInterface::write
1 parent ee0cc40 commit 2628d88

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ public function getVerbosity()
7878
/**
7979
* {@inheritdoc}
8080
*/
81-
public function writeln($messages, $type = 0)
81+
public function writeln($messages, $type = self::OUTPUT_NORMAL)
8282
{
8383
// do nothing
8484
}
8585

8686
/**
8787
* {@inheritdoc}
8888
*/
89-
public function write($messages, $newline = false, $type = 0)
89+
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
9090
{
9191
// do nothing
9292
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getVerbosity()
128128
*
129129
* @api
130130
*/
131-
public function writeln($messages, $type = 0)
131+
public function writeln($messages, $type = self::OUTPUT_NORMAL)
132132
{
133133
$this->write($messages, true, $type);
134134
}
@@ -144,7 +144,7 @@ public function writeln($messages, $type = 0)
144144
*
145145
* @api
146146
*/
147-
public function write($messages, $newline = false, $type = 0)
147+
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
148148
{
149149
if (self::VERBOSITY_QUIET === $this->verbosity) {
150150
return;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface OutputInterface
4343
*
4444
* @api
4545
*/
46-
public function write($messages, $newline = false, $type = 0);
46+
public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL);
4747

4848
/**
4949
* Writes a message to the output and adds a newline at the end.
@@ -53,7 +53,7 @@ public function write($messages, $newline = false, $type = 0);
5353
*
5454
* @api
5555
*/
56-
public function writeln($messages, $type = 0);
56+
public function writeln($messages, $type = self::OUTPUT_NORMAL);
5757

5858
/**
5959
* Sets the verbosity of the output.

0 commit comments

Comments
 (0)
0