Jordi Boggiano 13 年之前
父节点
当前提交
75410d13b7
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Composer/Command/InstallCommand.php

+ 1 - 0
src/Composer/Command/InstallCommand.php

@@ -40,6 +40,7 @@ class InstallCommand
 
         // TODO this should use the transaction returned by the solver
         foreach ($config['require'] as $name => $version) {
+            unset($package);
             foreach ($packages as $pkg) {
                 if (strtolower($pkg->getName()) === strtolower($name)) {
                     $package = $pkg;