Skip to content

Commit 123146e

Browse files
Fix Unpacker
1 parent 585dd28 commit 123146e

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)