Skip to content

Commit

Permalink
Merge pull request #70 from creative-commoners/pulls/2.0/remove-todo
Browse files Browse the repository at this point in the history
FIX Method CopyMethod::copy as deprecated
  • Loading branch information
GuySartorelli authored Oct 30, 2023
2 parents 0acac2f + 175505b commit 1ce6039
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Methods/CopyMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ 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");
}
}

/**
* 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)
Expand Down

0 comments on commit 1ce6039

Please sign in to comment.