소스 검색

Clear id when cloning

Jordi Boggiano 12 년 전
부모
커밋
85671021c3
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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;
     }
 }