Skip to content

Commit

Permalink
ComposerRepository: fix array_keys(): Argument #1 () must be of type …
Browse files Browse the repository at this point in the history
…array, null given (#10529)
  • Loading branch information
glaubinix committed Feb 9, 2022
1 parent 3cb44bc commit 23b0a38
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 (null !== $this->providersUrl && null !== $this->providerListing) {
return array_keys($this->providerListing);
}

Expand Down

0 comments on commit 23b0a38

Please sign in to comment.