diff --git a/src/Composer/DependencyResolver/Rule.php b/src/Composer/DependencyResolver/Rule.php index fafc8bda8..d2bd582a5 100644 --- a/src/Composer/DependencyResolver/Rule.php +++ b/src/Composer/DependencyResolver/Rule.php @@ -28,7 +28,6 @@ use Composer\Semver\Constraint\Constraint; abstract class Rule { // reason constants - const RULE_INTERNAL_ALLOW_UPDATE = 1; const RULE_ROOT_REQUIRE = 2; const RULE_FIXED = 3; const RULE_PACKAGE_CONFLICT = 6; @@ -180,9 +179,6 @@ abstract class Rule } switch ($this->getReason()) { - case self::RULE_INTERNAL_ALLOW_UPDATE: - return $ruleText; - case self::RULE_ROOT_REQUIRE: $packageName = $this->reasonData['packageName']; $constraint = $this->reasonData['constraint']; diff --git a/tests/Composer/Test/DependencyResolver/RuleSetIteratorTest.php b/tests/Composer/Test/DependencyResolver/RuleSetIteratorTest.php index 4ebf37bf3..381fbb6e5 100644 --- a/tests/Composer/Test/DependencyResolver/RuleSetIteratorTest.php +++ b/tests/Composer/Test/DependencyResolver/RuleSetIteratorTest.php @@ -35,7 +35,7 @@ class RuleSetIteratorTest extends TestCase new GenericRule(array(), Rule::RULE_ROOT_REQUIRE, null), ), RuleSet::TYPE_LEARNED => array( - new GenericRule(array(), Rule::RULE_INTERNAL_ALLOW_UPDATE, null), + new GenericRule(array(), Rule::RULE_FIXED, null), ), RuleSet::TYPE_PACKAGE => array(), ); diff --git a/tests/Composer/Test/DependencyResolver/RuleSetTest.php b/tests/Composer/Test/DependencyResolver/RuleSetTest.php index 5a89ddf79..12c91837b 100644 --- a/tests/Composer/Test/DependencyResolver/RuleSetTest.php +++ b/tests/Composer/Test/DependencyResolver/RuleSetTest.php @@ -31,7 +31,7 @@ class RuleSetTest extends TestCase new GenericRule(array(2), Rule::RULE_ROOT_REQUIRE, null), ), RuleSet::TYPE_LEARNED => array( - new GenericRule(array(), Rule::RULE_INTERNAL_ALLOW_UPDATE, null), + new GenericRule(array(), Rule::RULE_FIXED, null), ), );