Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix seed command accepting string #956

Merged
merged 2 commits into from
Jan 21, 2017

Conversation

ninjapenguin
Copy link
Contributor

Fixes TextWrapper which was unable to accept seed name correctly due to SeedRun::execute always expecting an array

@@ -143,6 +143,7 @@ public function getSeed($env = null, $target = null, $seed = null)
$command += array('-t' => $target);
}
if ($seed) {
$seed = is_array($seed) ? $seed : [$seed];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not type cast it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep - nice call, I've updated the PR. Thanks

@robmorgan robmorgan changed the base branch from 0.6.x-dev to master January 21, 2017 17:47
@robmorgan robmorgan merged commit 6a5c7c9 into cakephp:master Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants