Jelajahi Sumber

Clear id when cloning

Jordi Boggiano 12 tahun lalu
induk
melakukan
85671021c3
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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;
     }
 }