1
0
Fork 0

Allow calling getProviderNames multiple times, refs #8516

pull/8538/head
Jordi Boggiano 2020-01-14 09:31:27 +01:00
parent 3791a574a2
commit 0b767e0b83
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 2 deletions

View File

@ -249,8 +249,11 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
$this->loadProviderListings($this->loadRootServerFile());
}
if ($this->hasPartialPackages && null === $this->partialPackagesByName) {
$this->initializePartialPackages();
if ($this->hasPartialPackages) {
if (null === $this->partialPackagesByName) {
$this->initializePartialPackages();
}
return array_keys($this->partialPackagesByName);
}