1
0
Fork 0

Fix MultiConstraint::__toString

pull/1/head
Jordi Boggiano 2011-05-22 09:09:20 +02:00
parent 1edb22034d
commit 575e520931
1 changed files with 5 additions and 1 deletions

View File

@ -44,6 +44,10 @@ class MultiConstraint implements LinkConstraintInterface
public function __toString() public function __toString()
{ {
return $this->operator.' '.$this->version; $constraints = array();
foreach ($this->constraints as $constraint) {
$constraints[] = $constraint->__toString();
}
return '['.implode(', ', $constraints).']';
} }
} }