diff --git a/src/Composer/Repository/PathRepository.php b/src/Composer/Repository/PathRepository.php index 891320118..5e4b1d931 100644 --- a/src/Composer/Repository/PathRepository.php +++ b/src/Composer/Repository/PathRepository.php @@ -104,8 +104,8 @@ class PathRepository extends ArrayRepository $foundPackage = false; foreach ($this->getPaths() as $path) { - $path = realpath($path); - + $path = realpath($path) . '/'; + $composerFilePath = $path.'composer.json'; if (!file_exists($composerFilePath)) { continue;