Skip to content

Allow to select virtual packages in init command - #3322

Merged
Seldaek merged 1 commit into
composer:masterfrom
AydinHassan:hotfix/init-virtual-packages
Oct 7, 2014
Merged

Allow to select virtual packages in init command#3322
Seldaek merged 1 commit into
composer:masterfrom
AydinHassan:hotfix/init-virtual-packages

Conversation

@AydinHassan

Copy link
Copy Markdown

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
Seldaek added a commit that referenced this pull request Oct 7, 2014
@Seldaek

Seldaek commented Oct 7, 2014

Copy link
Copy Markdown
Member

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
Copy Markdown
Author

NP - Thanks :)

@AydinHassan
AydinHassan deleted the hotfix/init-virtual-packages branch October 7, 2014 15:10
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.

2 participants