Browse Source

Clear id when cloning

Jordi Boggiano 12 năm trước cách đây
mục cha
commit
85671021c3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;
     }
 }