composer/composer — pull request #3322 by AydinHassan (2014-10-02 11:12:23+00:00)
Title: Allow to select virtual packages in init command

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

![](http://ss.jhf.tw/gX5eC2XVzV.png)

![](http://ss.jhf.tw/pArAVN4w16.png)

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.