diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatter.php b/src/Symfony/Component/Console/Formatter/OutputFormatter.php index 8091f009f5..31dc499946 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatter.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatter.php @@ -49,7 +49,7 @@ class OutputFormatter implements OutputFormatterInterface * * @api */ - public function __construct($decorated = null, array $styles = array()) + public function __construct($decorated = false, array $styles = array()) { $this->decorated = (Boolean) $decorated; diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php index ec471699e0..f0bbd38372 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php @@ -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 */ @@ -77,7 +77,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface /** * 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 * @@ -105,7 +105,7 @@ class OutputFormatterStyle implements OutputFormatterStyleInterface /** * 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 * diff --git a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php index 5915023c62..e63912ca7b 100644 --- a/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php +++ b/src/Symfony/Component/Console/Formatter/OutputFormatterStyleStack.php @@ -29,7 +29,7 @@ class OutputFormatterStyleStack /** * Constructor. * - * @param OutputFormatterStyleInterface $emptyStyle + * @param OutputFormatterStyleInterface|null $emptyStyle */ public function __construct(OutputFormatterStyleInterface $emptyStyle = null) { @@ -58,7 +58,7 @@ class OutputFormatterStyleStack /** * Pops a style from the stack. * - * @param OutputFormatterStyleInterface $style + * @param OutputFormatterStyleInterface|null $style * * @return OutputFormatterStyleInterface * diff --git a/src/Symfony/Component/Console/Helper/ProgressHelper.php b/src/Symfony/Component/Console/Helper/ProgressHelper.php index 56507b869b..a2be5f3669 100644 --- a/src/Symfony/Component/Console/Helper/ProgressHelper.php +++ b/src/Symfony/Component/Console/Helper/ProgressHelper.php @@ -178,7 +178,7 @@ class ProgressHelper extends Helper * 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) {