Skip to content

Commit

Permalink
Merge pull request #956 from ninjapenguin/fix-seed-textwrapper
Browse files Browse the repository at this point in the history
Fix seed command accepting string
  • Loading branch information
robmorgan authored Jan 21, 2017
2 parents 0bf43ad + 0f441c3 commit 6a5c7c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Phinx/Wrapper/TextWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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);
Expand Down

0 comments on commit 6a5c7c9

Please sign in to comment.