mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Make ruleById lookup table in rule set public
Saves about 500k function calls on a packagist update
This commit is contained in:
parent
5c0efdcaa2
commit
d77400ade2
3 changed files with 10 additions and 9 deletions
|
@ -76,7 +76,7 @@ class RuleSetTest extends TestCase
|
|||
$rule = new Rule($this->pool, array(), 'job1', null);
|
||||
$ruleSet->add($rule, RuleSet::TYPE_JOB);
|
||||
|
||||
$this->assertSame($rule, $ruleSet->ruleById(0));
|
||||
$this->assertSame($rule, $ruleSet->ruleById[0]);
|
||||
}
|
||||
|
||||
public function testGetIterator()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue