From fae8a557f9dc45e6bcb9faa9acf0cf2ce3c7d04a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 8 Feb 2011 22:37:21 +0100 Subject: [PATCH] [Console] fixed typo --- src/Symfony/Component/Console/Input/ArgvInput.php | 2 +- src/Symfony/Component/Console/Input/ArrayInput.php | 2 +- src/Symfony/Component/Console/Input/InputInterface.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php index ddaeb2b99e..2e4ed7af18 100644 --- a/src/Symfony/Component/Console/Input/ArgvInput.php +++ b/src/Symfony/Component/Console/Input/ArgvInput.php @@ -263,7 +263,7 @@ class ArgvInput extends Input * * @return mixed The option value */ - public function getParameterOption(array $values, $default = false) + public function getParameterOption($values, $default = false) { if (!is_array($values)) { $values = array($values); diff --git a/src/Symfony/Component/Console/Input/ArrayInput.php b/src/Symfony/Component/Console/Input/ArrayInput.php index 407f3f2432..b64c0e578d 100644 --- a/src/Symfony/Component/Console/Input/ArrayInput.php +++ b/src/Symfony/Component/Console/Input/ArrayInput.php @@ -92,7 +92,7 @@ class ArrayInput extends Input * * @return mixed The option value */ - public function getParameterOption(array $values, $default = false) + public function getParameterOption($values, $default = false) { if (!is_array($values)) { $values = array($values); diff --git a/src/Symfony/Component/Console/Input/InputInterface.php b/src/Symfony/Component/Console/Input/InputInterface.php index 3fd6800c2a..12ed27c2c2 100644 --- a/src/Symfony/Component/Console/Input/InputInterface.php +++ b/src/Symfony/Component/Console/Input/InputInterface.php @@ -31,11 +31,11 @@ interface InputInterface * This method is to be used to introspect the input parameters * before it has been validated. It must be used carefully. * - * @param string $value The value to look for in the raw parameters + * @param string|array $value The values to look for in the raw parameters (can be an array) * * @return Boolean true if the value is contained in the raw parameters */ - function hasParameterOption($value); + function hasParameterOption($values); /** * Returns the value of a raw option (not parsed). @@ -47,7 +47,7 @@ interface InputInterface * * @return mixed The option value */ - function getParameterOption(array $values, $default = false); + function getParameterOption($values, $default = false); /** * Binds the current Input instance with the given arguments and options.