Skip to content

Commit 1ce6039

Browse files
Merge pull request #70 from creative-commoners/pulls/2.0/remove-todo
FIX Method CopyMethod::copy as deprecated
2 parents 0acac2f + 175505b commit 1ce6039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Methods/CopyMethod.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ public function exposeDirectory($source, $target)
3030
$this->filesystem->removeDirectory($target);
3131

3232
// Copy to destination
33-
if (!$this->copy($source, $target)) {
33+
if (!$this->filesystem->copy($source, $target)) {
3434
throw new RuntimeException("Could not write to directory $target");
3535
}
3636
}
3737

3838
/**
3939
* Copies a file or directory from $source to $target.
4040
*
41-
* @todo Replace with `$this->filesystem->copy() once composer 1.6.0 is released
4241
*
4342
* @param string $source
4443
* @param string $target
44+
* @deprecated 5.2 Use Filesystem::copy instead
4545
* @return bool
4646
*/
4747
public function copy($source, $target)

0 commit comments

Comments
 (0)