Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use the locked package for the update operation

  • Loading branch information...
commit b0e98fa0c51f6c1ed433a23931e383debefaa756 1 parent ad2c996
@cs278 cs278 authored committed
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/Composer/Installer.php
View
5 src/Composer/Installer.php
@@ -399,10 +399,7 @@ protected function doInstall($localRepo, $installedRepo, $aliases, $devMode = fa
|| ($lockedPackage->getDistReference() && $lockedPackage->getDistReference() !== $package->getDistReference())
)
) {
- $newPackage = clone $package;
- $newPackage->setSourceReference($lockedPackage->getSourceReference());
- $newPackage->setDistReference($lockedPackage->getDistReference());
- $operations[] = new UpdateOperation($package, $newPackage);
+ $operations[] = new UpdateOperation($package, $lockedPackage);
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.