Explorar el Código

fixed direct rename() usage for v1.2

msiebeneicher hace 8 años
padre
commit
800a4bf391
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Composer/Package/Archiver/ArchiveManager.php

+ 1 - 1
src/Composer/Package/Archiver/ArchiveManager.php

@@ -164,7 +164,7 @@ class ArchiveManager
         $filesystem->ensureDirectoryExists(dirname($tempTarget));
 
         $archivePath = $usableArchiver->archive($sourcePath, $tempTarget, $format, $package->getArchiveExcludes());
-        rename($archivePath, $target);
+        $filesystem->rename($archivePath, $target);
 
         // cleanup temporary download
         if (!$package instanceof RootPackageInterface) {