diff --git a/src/Methods/CopyMethod.php b/src/Methods/CopyMethod.php index c38d05a..38d1114 100644 --- a/src/Methods/CopyMethod.php +++ b/src/Methods/CopyMethod.php @@ -30,7 +30,7 @@ public function exposeDirectory($source, $target) $this->filesystem->removeDirectory($target); // Copy to destination - if (!$this->copy($source, $target)) { + if (!$this->filesystem->copy($source, $target)) { throw new RuntimeException("Could not write to directory $target"); } } @@ -38,10 +38,10 @@ public function exposeDirectory($source, $target) /** * Copies a file or directory from $source to $target. * - * @todo Replace with `$this->filesystem->copy() once composer 1.6.0 is released * * @param string $source * @param string $target + * @deprecated 5.2 Use Filesystem::copy instead * @return bool */ public function copy($source, $target)