diff --git a/src/Composer/DependencyResolver/Operation/UpdateOperation.php b/src/Composer/DependencyResolver/Operation/UpdateOperation.php index c73e6166d..d73f00d7a 100644 --- a/src/Composer/DependencyResolver/Operation/UpdateOperation.php +++ b/src/Composer/DependencyResolver/Operation/UpdateOperation.php @@ -25,7 +25,6 @@ class UpdateOperation extends Operation implements OperationInterface const TYPE = 'update'; protected $initialPackage; - protected $targetPackage; /** * Initializes update operation. @@ -64,7 +63,7 @@ class UpdateOperation extends Operation implements OperationInterface */ public function show($lock) { - return self::format($this->initialPackage, $this->targetPackage, $lock); + return self::format($this->initialPackage, $this->package, $lock); } public static function format(PackageInterface $initialPackage, PackageInterface $targetPackage, $lock = false)