Fix pretty constraint for --with overrides
parent
7507b87fb3
commit
ccea1b95a8
|
@ -293,14 +293,14 @@ EOT
|
|||
{
|
||||
$parser = new VersionParser;
|
||||
$oldPrettyString = $link->getConstraint()->getPrettyString();
|
||||
$newConstraint = MultiConstraint::create(array($link->getConstraint(), $parser->parseConstraints($constraint)));
|
||||
$newConstraint->setPrettyString($oldPrettyString.' && '.$constraint);
|
||||
$newConstraint = MultiConstraint::create(array($link->getConstraint(), $parser->parseConstraints($constraint)), true);
|
||||
$newConstraint->setPrettyString($oldPrettyString.', '.$constraint);
|
||||
return new Link(
|
||||
$link->getSource(),
|
||||
$link->getTarget(),
|
||||
$newConstraint,
|
||||
$link->getDescription(),
|
||||
$link->getPrettyConstraint() . ' && ' . $constraint
|
||||
$link->getPrettyConstraint() . ', ' . $constraint
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue