diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 0154a49a5..640001cec 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -657,7 +657,7 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito return array(); } - if ($this->providersUrl) { + if (null !== $this->providersUrl && null !== $this->providerListing) { return array_keys($this->providerListing); }