Adjust version parser so it persists self.version references
parent
b8f200b0f2
commit
afbb9cefa4
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue