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

Allow to select virtual packages in init command #3322

Merged
merged 1 commit into from Oct 7, 2014
Merged

Allow to select virtual packages in init command #3322

merged 1 commit into from Oct 7, 2014

Conversation

@AydinHassan
Copy link

@AydinHassan AydinHassan commented Oct 2, 2014

It seems matches returns virtual packages with their keys the same as their name. This means you can't actually select them when prompted:

It's a simple fix by using array_values on the return of findPackages

Let me know if i've overlooked something, I also looked where to add a test but couldn't really see any existing tests for the command internals.

@Seldaek Seldaek merged commit 432cdbc into composer:master Oct 7, 2014
1 check passed
@Seldaek
Copy link
Member

@Seldaek Seldaek commented Oct 7, 2014

Thanks, I changed the patch a bit though to actually fix it where it started so as to avoid any further issues with the search functionality.

@AydinHassan
Copy link
Author

@AydinHassan AydinHassan commented Oct 7, 2014

NP - Thanks :)

@AydinHassan AydinHassan deleted the hotfix/init-virtual-packages branch Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants