1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 17:12:51 +00:00

Make check more obvious

This commit is contained in:
Dennis Birkholz 2015-09-18 17:55:07 +02:00
parent 6b1c9882dd
commit 681e543793

View file

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