Explorar o código

[Console] fixed InputDefinition setArguments must reset hasAnArrayArgument (closes #8336)

Fabien Potencier %!s(int64=15) %!d(string=hai) anos
pai
achega
82ec7004d5
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      src/Symfony/Components/Console/Input/InputDefinition.php

+ 4 - 3
src/Symfony/Components/Console/Input/InputDefinition.php

@@ -67,9 +67,10 @@ class InputDefinition
      */
     public function setArguments($arguments = array())
     {
-        $this->arguments     = array();
-        $this->requiredCount = 0;
-        $this->hasOptional   = false;
+        $this->arguments          = array();
+        $this->requiredCount      = 0;
+        $this->hasOptional        = false;
+        $this->hasAnArrayArgument = false;
         $this->addArguments($arguments);
     }