Эх сурвалжийг харах

Add back ruleById function for BC

Nils Adermann 10 жил өмнө
parent
commit
6f41e99fe2

+ 5 - 0
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;