Skip to content

Commit

Permalink
Fix composer array issue with plain array as returned by composer get…
Browse files Browse the repository at this point in the history
…Config getRepositories #35
  • Loading branch information
das-peter authored and Natshah committed Nov 30, 2020
1 parent 83212b4 commit 3c028bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/RefactorComposerCommand.php
Expand Up @@ -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;
Expand Down

0 comments on commit 3c028bc

Please sign in to comment.