Browse Source

Add back ruleById function for BC

Nils Adermann 10 năm trước cách đây
mục cha
commit
6f41e99fe2
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      src/Composer/DependencyResolver/RuleSet.php

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