From 3c028bc98118e5a4263b346e556c95f6245227af Mon Sep 17 00:00:00 2001 From: Peter Philipp Date: Mon, 30 Nov 2020 11:38:39 +0200 Subject: [PATCH] Fix composer array issue with plain array as returned by composer getConfig getRepositories #35 --- src/Commands/RefactorComposerCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Commands/RefactorComposerCommand.php b/src/Commands/RefactorComposerCommand.php index 805f19b..be737cf 100644 --- a/src/Commands/RefactorComposerCommand.php +++ b/src/Commands/RefactorComposerCommand.php @@ -189,7 +189,7 @@ public function generate($savePath, $drupalPath) { $projectPackage = $composer->getPackage(); $projectPackageRequires = $projectPackage->getRequires(); $projectPackageExtras = $projectPackage->getExtra(); - $projectPackageRepos = $projectPackage->getRepositories(); + $projectPackageRepos = $composer->getConfig()->getRepositories(); $projectScripts = $projectPackage->getScripts(); $projectPackagePatches = []; $continue = true;