Skip to content

Commit

Permalink
ComposerRepository: fix array_keys(): Argument composer#1 () must be …
Browse files Browse the repository at this point in the history
…of type array, null given
  • Loading branch information
glaubinix committed Feb 9, 2022
1 parent 3cb44bc commit ebfd3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Repository/ComposerRepository.php
Expand Up @@ -657,7 +657,7 @@ private function getProviderNames()
return array();
}

if ($this->providersUrl) {
if ($this->providersUrl && null !== $this->providerListing) {
return array_keys($this->providerListing);
}

Expand Down

0 comments on commit ebfd3a5

Please sign in to comment.