mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
Fix whatProvides returning too many results when no constraint is given
This commit is contained in:
parent
3346609c5d
commit
051d219438
2 changed files with 9 additions and 14 deletions
|
@ -405,7 +405,7 @@ class SolverTest extends TestCase
|
|||
{
|
||||
$this->repoInstalled->addPackage($packageA = $this->getPackage('A', '1.0'));
|
||||
$this->repo->addPackage($packageB = $this->getPackage('B', '1.0'));
|
||||
$packageB->setReplaces(array('a' => new Link('B', 'A', null)));
|
||||
$packageB->setReplaces(array('a' => new Link('B', 'A', new MultiConstraint(array()))));
|
||||
|
||||
$this->reposComplete();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue