From 6f41e99fe29bdf8e0470b5c92d1cb5eafc119eb4 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Mon, 1 Dec 2014 19:11:02 +0100 Subject: [PATCH] Add back ruleById function for BC --- src/Composer/DependencyResolver/RuleSet.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/DependencyResolver/RuleSet.php b/src/Composer/DependencyResolver/RuleSet.php index 439a438b5..b9545123f 100644 --- a/src/Composer/DependencyResolver/RuleSet.php +++ b/src/Composer/DependencyResolver/RuleSet.php @@ -82,6 +82,11 @@ class RuleSet implements \IteratorAggregate, \Countable return $this->nextRuleId; } + public function ruleById($id) + { + return $this->ruleById[$id]; + } + public function getRules() { return $this->rules;