From e62080e15c89082aba34ffef2869b23d268dd9cb Mon Sep 17 00:00:00 2001 From: Yves P Date: Thu, 5 Jan 2017 22:55:32 +0100 Subject: [PATCH] No need to convert the seed parameter to an array if it is already an array --- src/Command/Seed.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Seed.php b/src/Command/Seed.php index 16b30d22..b096a588 100644 --- a/src/Command/Seed.php +++ b/src/Command/Seed.php @@ -61,8 +61,8 @@ protected function execute(InputInterface $input, OutputInterface $output) } $seed = $input->getOption('seed'); - if (!empty($seed)) { - $input->setOption('seed', [$input->getOption('seed')]); + if (!empty($seed) && !is_array($seed)) { + $input->setOption('seed', [$seed]); } $this->setInput($input);