diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index 6fe7692d3eed7..8888378e3fc30 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -390,9 +390,9 @@ public function register($name) * * If a Command is not enabled it will not be added. * - * @param Command[] $commands An array of commands + * @param Command[] $commands An array or iterator of commands */ - public function addCommands(array $commands) + public function addCommands(iterable $commands) { foreach ($commands as $command) { $this->add($command);