Fixed in https://github.com/composer/composer/commit/eb5c785dcdf6727a88852571aefecb413f74e175