Issue #3422

https://github.com/composer/composer/issues/3422
Merge pull request #3423 from Michael-Gusev/patch-1

Issue #3422