1
0
Fork 0

Fix self.version replacement

pull/142/merge
Jordi Boggiano 2011-12-04 21:58:42 +01:00
parent 71a6b47e90
commit 37df1a0d15
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ class ArrayLoader
$links = array(); $links = array();
foreach ($linksSpecs as $packageName => $constraint) { foreach ($linksSpecs as $packageName => $constraint) {
if ('self.version' === $constraint) { if ('self.version' === $constraint) {
$constraint = $package->getVersion(); $constraint = $package->getPrettyVersion();
} }
$parsedConstraint = $this->versionParser->parseConstraints($constraint); $parsedConstraint = $this->versionParser->parseConstraints($constraint);
$links[] = new Package\Link($package->getName(), $packageName, $parsedConstraint, $description, $constraint); $links[] = new Package\Link($package->getName(), $packageName, $parsedConstraint, $description, $constraint);