Make check more obvious

main
Dennis Birkholz 9 years ago
parent 6b1c9882dd
commit 681e543793

@ -128,7 +128,7 @@ class PathRepository extends ArrayRepository
$this->addPackage($package); $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)); throw new \RuntimeException(sprintf('No `composer.json` file found in any path repository in "%s"', $this->url));
} }
} }

Loading…
Cancel
Save