1
0
Fork 0

Fix undefined method call

pull/9188/head
Jordi Boggiano 2020-09-07 11:42:08 +02:00
parent 070530534d
commit 199696d120
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ class Request
$constraint = new MatchAllConstraint(); $constraint = new MatchAllConstraint();
} }
if (isset($this->requires[$packageName])) { if (isset($this->requires[$packageName])) {
throw new \LogicException('Overwriting requires seems like a bug ('.$packageName.' '.$this->requires[$packageName]->getPrettyConstraint().' => '.$constraint->getPrettyConstraint().', check why it is happening, might be a root alias'); throw new \LogicException('Overwriting requires seems like a bug ('.$packageName.' '.$this->requires[$packageName]->getPrettyString().' => '.$constraint->getPrettyString().', check why it is happening, might be a root alias');
} }
$this->requires[$packageName] = $constraint; $this->requires[$packageName] = $constraint;
} }