Преглед на файлове

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));
         }
     }