From 256955f0f7988b94d952d9dbf9cbcf7a611f03b1 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 21 Jul 2011 13:53:39 +0200 Subject: [PATCH] Minor code cleanup --- src/Composer/DependencyResolver/Pool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/DependencyResolver/Pool.php b/src/Composer/DependencyResolver/Pool.php index 41fbc67d5..bbe0e8702 100644 --- a/src/Composer/DependencyResolver/Pool.php +++ b/src/Composer/DependencyResolver/Pool.php @@ -36,8 +36,8 @@ class Pool $this->repositories[] = $repo; foreach ($repo->getPackages() as $package) { + $package->setId(count($this->packages)); $this->packages[] = $package; - $package->setId(sizeof($this->packages) - 1); foreach ($package->getNames() as $name) { $this->packageByName[$name][] = $package;