Skip to content

Commit

Permalink
Merge pull request #10076 from aschempp/bugfix/package-type-update
Browse files Browse the repository at this point in the history
Correctly resolve promises when package type changes
  • Loading branch information
Seldaek committed Aug 29, 2021
2 parents b8e461e + 0bed60e commit 8559279
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Installer/InstallationManager.php
Expand Up @@ -511,7 +511,7 @@ public function update(InstalledRepositoryInterface $repo, UpdateOperation $oper
}

$installer = $this->getInstaller($targetType);
$promise->then(function () use ($installer, $repo, $target) {
$promise = $promise->then(function () use ($installer, $repo, $target) {
return $installer->install($repo, $target);
});
}
Expand Down

0 comments on commit 8559279

Please sign in to comment.