Explorar o código

Fix missing trailing / in repository paths

Dennis Birkholz %!s(int64=9) %!d(string=hai) anos
pai
achega
2fb7dd881a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/Composer/Repository/PathRepository.php

+ 2 - 2
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;