Fix MultiConstraint::__toString
parent
1edb22034d
commit
575e520931
|
@ -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).']';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue