瀏覽代碼

[Console] fixed typo

Fabien Potencier 14 年之前
父節點
當前提交
fae8a557f9

+ 1 - 1
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);

+ 1 - 1
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);

+ 3 - 3
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.