From 646d01658a8aa7dfcc467e8be4197045bc429747 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 19 Feb 2012 15:20:03 +0100 Subject: [PATCH] Rename source_ref to source-ref --- src/Composer/Command/InstallCommand.php | 4 ++-- src/Composer/Package/Locker.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Command/InstallCommand.php b/src/Composer/Command/InstallCommand.php index e2dcb6a38..937393a1c 100644 --- a/src/Composer/Command/InstallCommand.php +++ b/src/Composer/Command/InstallCommand.php @@ -232,8 +232,8 @@ EOT } if ($package && $package->isDev()) { foreach ($composer->getLocker()->getLockedPackages() as $lockedPackage) { - if (!empty($lockedPackage['source_reference']) && strtolower($lockedPackage['package']) === $package->getName()) { - $package->setSourceReference($lockedPackage['source_reference']); + if (!empty($lockedPackage['source-reference']) && strtolower($lockedPackage['package']) === $package->getName()) { + $package->setSourceReference($lockedPackage['source-reference']); } } } diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index 39a299873..255835ec3 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -119,7 +119,7 @@ class Locker $spec = array('package' => $name, 'version' => $version); if ($package->isDev()) { - $spec['source_reference'] = $package->getSourceReference(); + $spec['source-reference'] = $package->getSourceReference(); } $lock['packages'][] = $spec;