Преглед изворни кода

Allow downgrades and uninstalls in the default policy

Nils Adermann пре 13 година
родитељ
комит
2056c4c732
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/Composer/DependencyResolver/DefaultPolicy.php

+ 2 - 2
src/Composer/DependencyResolver/DefaultPolicy.php

@@ -23,12 +23,12 @@ class DefaultPolicy implements PolicyInterface
 {
     public function allowUninstall()
     {
-        return false;
+        return true;
     }
 
     public function allowDowngrade()
     {
-        return false;
+        return true;
     }
 
     public function versionCompare(PackageInterface $a, PackageInterface $b, $operator)