瀏覽代碼

Make check more obvious

Dennis Birkholz 9 年之前
父節點
當前提交
681e543793
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/Repository/PathRepository.php

+ 1 - 1
src/Composer/Repository/PathRepository.php

@@ -128,7 +128,7 @@ class PathRepository extends ArrayRepository
             $this->addPackage($package);
         }
 
-        if (count($this) == 0) {
+        if (count($this->getPackages()) == 0) {
             throw new \RuntimeException(sprintf('No `composer.json` file found in any path repository in "%s"', $this->url));
         }
     }