Ver Fonte

Change Uninstalling to Removing in lock operations

Jordi Boggiano há 5 anos atrás
pai
commit
589aa351a8

+ 1 - 1
src/Composer/DependencyResolver/Operation/UninstallOperation.php

@@ -61,7 +61,7 @@ class UninstallOperation extends SolverOperation
      */
     public function show($lock)
     {
-        return 'Uninstalling '.$this->package->getPrettyName().' ('.$this->package->getFullPrettyVersion().')';
+        return ($lock ? 'Removing ' : 'Uninstalling ').$this->package->getPrettyName().' ('.$this->package->getFullPrettyVersion().')';
     }
 
     /**

+ 1 - 1
tests/Composer/Test/Fixtures/installer/update-removes-unused-locked-dep.test

@@ -56,7 +56,7 @@ update
 Loading composer repositories with package information
 Updating dependencies
 Lock file operations: 0 installs, 0 updates, 1 removal
-  - Uninstalling b/b (1.0.0)
+  - Removing b/b (1.0.0)
 Writing lock file
 Installing dependencies from lock file (including require-dev)
 Package operations: 0 installs, 0 updates, 2 removals