Skip to content

Commit 5c71110

Browse files
bug #688 Fix Unpacker (nicolas-grekas)
This PR was merged into the 1.8-dev branch. Discussion ---------- Fix Unpacker Fix #687 Commits ------- 123146e Fix Unpacker
2 parents 585dd28 + 123146e commit 5c71110

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Unpacker.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,10 @@ public function unpack(Operation $op, Result $result = null, &$links = []): Resu
102102

103103
$linkName = $link->getTarget();
104104
$linkType = $package['dev'] ? 'require-dev' : 'require';
105+
$constraint = $this->versionParser->parseConstraints($constraint);
105106

106107
if (isset($links[$linkName])) {
107-
$links[$linkName]['constraints'][] = $this->versionParser->parseConstraints($constraint);
108+
$links[$linkName]['constraints'][] = $constraint;
108109
if ('require' === $linkType) {
109110
$links[$linkName]['type'] = 'require';
110111
}

0 commit comments

Comments
 (0)