From 140de5480d7a5c2e0415ae409dc44b1f3b7307a3 Mon Sep 17 00:00:00 2001 From: Bezpiatov Date: Wed, 14 Oct 2020 17:58:39 +0300 Subject: [PATCH] Fixed variable usage --- src/Composer/DependencyResolver/Operation/UpdateOperation.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)