Skip to content

Commit

Permalink
[Console] fix phpdoc and constructor default value
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Nov 8, 2013
1 parent 99f3b3f commit fa4075e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Expand Up @@ -49,7 +49,7 @@ public static function escape($text)
*
* @api
*/
public function __construct($decorated = null, array $styles = array())
public function __construct($decorated = false, array $styles = array())
{
$this->decorated = (Boolean) $decorated;

Expand Down
10 changes: 5 additions & 5 deletions src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php
Expand Up @@ -55,9 +55,9 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface
/**
* Initializes output formatter style.
*
* @param string $foreground The style foreground color name
* @param string $background The style background color name
* @param array $options The style options
* @param string|null $foreground The style foreground color name
* @param string|null $background The style background color name
* @param array $options The style options
*
* @api
*/
Expand All @@ -77,7 +77,7 @@ public function __construct($foreground = null, $background = null, array $optio
/**
* Sets style foreground color.
*
* @param string $color The color name
* @param string|null $color The color name
*
* @throws \InvalidArgumentException When the color name isn't defined
*
Expand Down Expand Up @@ -105,7 +105,7 @@ public function setForeground($color = null)
/**
* Sets style background color.
*
* @param string $color The color name
* @param string|null $color The color name
*
* @throws \InvalidArgumentException When the color name isn't defined
*
Expand Down
Expand Up @@ -29,7 +29,7 @@ class OutputFormatterStyleStack
/**
* Constructor.
*
* @param OutputFormatterStyleInterface $emptyStyle
* @param OutputFormatterStyleInterface|null $emptyStyle
*/
public function __construct(OutputFormatterStyleInterface $emptyStyle = null)
{
Expand Down Expand Up @@ -58,7 +58,7 @@ public function push(OutputFormatterStyleInterface $style)
/**
* Pops a style from the stack.
*
* @param OutputFormatterStyleInterface $style
* @param OutputFormatterStyleInterface|null $style
*
* @return OutputFormatterStyleInterface
*
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Helper/ProgressHelper.php
Expand Up @@ -178,7 +178,7 @@ public function setRedrawFrequency($freq)
* Starts the progress output.
*
* @param OutputInterface $output An Output instance
* @param integer $max Maximum steps
* @param integer|null $max Maximum steps
*/
public function start(OutputInterface $output, $max = null)
{
Expand Down

0 comments on commit fa4075e

Please sign in to comment.