diff --git a/src/Composer/Package/Loader/ArrayLoader.php b/src/Composer/Package/Loader/ArrayLoader.php index a68d3e3b5..68afaa7ff 100644 --- a/src/Composer/Package/Loader/ArrayLoader.php +++ b/src/Composer/Package/Loader/ArrayLoader.php @@ -159,8 +159,8 @@ class ArrayLoader if ('self.version' === $constraint) { $constraint = $package->getVersion(); } - $constraint = $this->versionParser->parseConstraints($constraint); - $links[] = new Package\Link($package->getName(), $packageName, $constraint, $description, $constraint); + $parsedConstraint = $this->versionParser->parseConstraints($constraint); + $links[] = new Package\Link($package->getName(), $packageName, $parsedConstraint, $description, $constraint); } return $links;