Skip to content

Commit

Permalink
FIX Method CopyMethod::copy as deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Oct 30, 2023
1 parent 0acac2f commit 175505b
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 175505b

Please sign in to comment.