Fix self.version replacement
parent
71a6b47e90
commit
37df1a0d15
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue