Przeglądaj źródła

Clear id when cloning

Jordi Boggiano 12 lat temu
rodzic
commit
85671021c3
1 zmienionych plików z 1 dodań i 0 usunięć
  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;
     }
 }