From 7312c62c5dacbfcffe43b9d6e6411ec23066fca7 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 15 Apr 2012 19:12:00 +0200 Subject: [PATCH] Fix lock handling of aliases --- src/Composer/Package/Locker.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index 032c6a05c..fc448c360 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -169,6 +169,10 @@ class Locker $locked = array(); foreach ($packages as $package) { + if ($package instanceof AliasPackage) { + $package = $package->getAliasOf(); + } + $name = $package->getPrettyName(); $version = $package->getPrettyVersion();