## Steps to reproduce Create small project like this _composer.json_ ```json { "require": { "psr/log": "^3.0" } } ``` _index.php_ ```php <?php require __DIR__ . '/vendor/autoload.php'; print_r(Composer\InstalledVersions::getInstalledPackagesByType('library')); ``` Run the script ``` php index.php ``` Output ``` Array ( [0] => __root__ [1] => psr/log [2] => __root__ [3] => psr/log ) ``` Note that entries are duplicated.