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:
parent
6b1c9882dd
commit
681e543793
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue