From 175505bf7286a02e47a3cba087d026f8b110b3e3 Mon Sep 17 00:00:00 2001 From: Sabina Talipova Date: Tue, 10 Oct 2023 15:09:54 +1300 Subject: [PATCH] FIX Method CopyMethod::copy as deprecated --- src/Methods/CopyMethod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)