diff --git a/src/Phinx/Wrapper/TextWrapper.php b/src/Phinx/Wrapper/TextWrapper.php index d614e21b3..73d879a88 100644 --- a/src/Phinx/Wrapper/TextWrapper.php +++ b/src/Phinx/Wrapper/TextWrapper.php @@ -126,9 +126,9 @@ public function getMigrate($env = null, $target = null) /** * Returns the output from running the "seed:run" command. - * @param string|null $env environment name - * @param string|null $target target version - * @param string|null $seed seed name + * @param string|null $env environment name + * @param string|null $target target version + * @param array|string|null $seed array of seed names or seed name * @return string */ public function getSeed($env = null, $target = null, $seed = null) @@ -143,6 +143,7 @@ public function getSeed($env = null, $target = null, $seed = null) $command += array('-t' => $target); } if ($seed) { + $seed = (array) $seed; $command += array('-s' => $seed); } return $this->executeRun($command);