1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Set all package ids only once the pool is created

They all get set in one place only and at a specific time when nothing
else will possibly change them anymore
This commit is contained in:
Nils Adermann 2018-09-12 14:30:18 +02:00
parent 5c491ecc9b
commit 81bb8f81ad
5 changed files with 4 additions and 25 deletions

View file

@ -143,7 +143,6 @@ class RuleSetTest extends TestCase
$pool->setPackages(array(
$p = $this->getPackage('foo', '2.1'),
));
$p->setId(1);
$ruleSet = new RuleSet;
$literal = $p->getId();