https://github.com/composer/composer/pull/1344