Skip to content

Commit

Permalink
Merge pull request #298 from cakephp/issue-297
Browse files Browse the repository at this point in the history
No need to convert the seed parameter to an array if it is already an array
  • Loading branch information
lorenzo authored Jan 7, 2017
2 parents bed3b4d + e62080e commit 7e252a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/Seed.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e252a3

Please sign in to comment.