فهرست منبع

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)