diff --git a/src/Symfony/Component/Console/Output/NullOutput.php b/src/Symfony/Component/Console/Output/NullOutput.php index 301b7f5f6a..c75cfcae98 100644 --- a/src/Symfony/Component/Console/Output/NullOutput.php +++ b/src/Symfony/Component/Console/Output/NullOutput.php @@ -78,7 +78,7 @@ class NullOutput implements OutputInterface /** * {@inheritdoc} */ - public function writeln($messages, $type = 0) + public function writeln($messages, $type = self::OUTPUT_NORMAL) { // do nothing } @@ -86,7 +86,7 @@ class NullOutput implements OutputInterface /** * {@inheritdoc} */ - public function write($messages, $newline = false, $type = 0) + public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) { // do nothing } diff --git a/src/Symfony/Component/Console/Output/Output.php b/src/Symfony/Component/Console/Output/Output.php index 2493ae66e6..ec0290e378 100644 --- a/src/Symfony/Component/Console/Output/Output.php +++ b/src/Symfony/Component/Console/Output/Output.php @@ -128,7 +128,7 @@ abstract class Output implements OutputInterface * * @api */ - public function writeln($messages, $type = 0) + public function writeln($messages, $type = self::OUTPUT_NORMAL) { $this->write($messages, true, $type); } @@ -144,7 +144,7 @@ abstract class Output implements OutputInterface * * @api */ - public function write($messages, $newline = false, $type = 0) + public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL) { if (self::VERBOSITY_QUIET === $this->verbosity) { return; diff --git a/src/Symfony/Component/Console/Output/OutputInterface.php b/src/Symfony/Component/Console/Output/OutputInterface.php index 4d7606cb53..eab9d54e14 100644 --- a/src/Symfony/Component/Console/Output/OutputInterface.php +++ b/src/Symfony/Component/Console/Output/OutputInterface.php @@ -43,7 +43,7 @@ interface OutputInterface * * @api */ - public function write($messages, $newline = false, $type = 0); + public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL); /** * Writes a message to the output and adds a newline at the end. @@ -53,7 +53,7 @@ interface OutputInterface * * @api */ - public function writeln($messages, $type = 0); + public function writeln($messages, $type = self::OUTPUT_NORMAL); /** * Sets the verbosity of the output.