From 670ca2f8892845eb94c75c20b46cd8d72ceaa085 Mon Sep 17 00:00:00 2001 From: Sam Mousa Date: Thu, 20 Nov 2014 14:17:40 +0100 Subject: [PATCH] Fixed issue #3441 --- src/Composer/DependencyResolver/Pool.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/DependencyResolver/Pool.php b/src/Composer/DependencyResolver/Pool.php index 13a233155..8182819eb 100644 --- a/src/Composer/DependencyResolver/Pool.php +++ b/src/Composer/DependencyResolver/Pool.php @@ -123,7 +123,7 @@ class Pool $package['id'] = $this->id++; $package['stability'] = $stability; $this->packages[] = $package; - $this->packageByExactName[$package->getName()][$package['id']] = $this->packages[$this->id - 2]; + $this->packageByExactName[$name][$package['id']] = $this->packages[$this->id - 2]; foreach ($names as $provided) { $this->packageByName[$provided][$package['id']] = $this->packages[$this->id - 2]; @@ -146,7 +146,7 @@ class Pool $alias['id'] = $this->id++; $alias['root_alias'] = true; $this->packages[] = $alias; - $this->packageByExactName[$package->getName()][$alias['id']] = $this->packages[$this->id - 2]; + $this->packageByExactName[$name][$alias['id']] = $this->packages[$this->id - 2]; foreach ($names as $provided) { $this->packageByName[$provided][$alias['id']] = $this->packages[$this->id - 2]; @@ -162,7 +162,7 @@ class Pool $alias['alias_of'] = $package['id']; $alias['id'] = $this->id++; $this->packages[] = $alias; - $this->packageByExactName[$package->getName()][$alias['id']] = $this->packages[$this->id - 2]; + $this->packageByExactName[$name][$alias['id']] = $this->packages[$this->id - 2]; foreach ($names as $provided) { $this->packageByName[$provided][$alias['id']] = $this->packages[$this->id - 2];