Browse Source

Clear id when cloning

Jordi Boggiano 12 years ago
parent
commit
85671021c3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/Composer/Package/BasePackage.php

+ 1 - 0
src/Composer/Package/BasePackage.php

@@ -178,5 +178,6 @@ abstract class BasePackage implements PackageInterface
     public function __clone()
     {
         $this->repository = null;
+        $this->id = -1;
     }
 }