1
0
Fork 0

Adjust version parser so it persists self.version references

pull/350/head
Jordi Boggiano 2012-02-21 11:58:17 +01:00
parent b8f200b0f2
commit afbb9cefa4
1 changed files with 3 additions and 2 deletions

View File

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