From 23b0a3819bb74214f04a0799c6f998c9822f54f4 Mon Sep 17 00:00:00 2001 From: Stephan Date: Wed, 9 Feb 2022 10:45:10 +0000 Subject: [PATCH] ComposerRepository: fix array_keys(): Argument #1 () must be of type array, null given (#10529) --- src/Composer/Repository/ComposerRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }