diff --git a/src/Composer/Package/LinkConstraint/MultiConstraint.php b/src/Composer/Package/LinkConstraint/MultiConstraint.php index fecf173c8..a6d85bc56 100644 --- a/src/Composer/Package/LinkConstraint/MultiConstraint.php +++ b/src/Composer/Package/LinkConstraint/MultiConstraint.php @@ -44,6 +44,10 @@ class MultiConstraint implements LinkConstraintInterface public function __toString() { - return $this->operator.' '.$this->version; + $constraints = array(); + foreach ($this->constraints as $constraint) { + $constraints[] = $constraint->__toString(); + } + return '['.implode(', ', $constraints).']'; } }