From 418429275de792bb2b0d126aeb31e395d1484674 Mon Sep 17 00:00:00 2001 From: Jacques Moati Date: Sat, 1 Feb 2014 16:46:23 +0100 Subject: [PATCH] Option can be bool too (eg. --force) --- src/Symfony/Component/Console/Input/Input.php | 4 ++-- src/Symfony/Component/Console/Input/InputInterface.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Console/Input/Input.php b/src/Symfony/Component/Console/Input/Input.php index fb84cf829e..275a2cc759 100644 --- a/src/Symfony/Component/Console/Input/Input.php +++ b/src/Symfony/Component/Console/Input/Input.php @@ -185,8 +185,8 @@ abstract class Input implements InputInterface /** * Sets an option value by name. * - * @param string $name The option name - * @param string $value The option value + * @param string $name The option name + * @param string|boolean $value The option value * * @throws \InvalidArgumentException When option given doesn't exist */ diff --git a/src/Symfony/Component/Console/Input/InputInterface.php b/src/Symfony/Component/Console/Input/InputInterface.php index c39429d235..cf0270caa2 100644 --- a/src/Symfony/Component/Console/Input/InputInterface.php +++ b/src/Symfony/Component/Console/Input/InputInterface.php @@ -120,8 +120,8 @@ interface InputInterface /** * Sets an option value by name. * - * @param string $name The option name - * @param string $value The option value + * @param string $name The option name + * @param string|boolean $value The option value * * @throws \InvalidArgumentException When option given doesn't exist */