From c412f342d630cc809c8b311a69c7fb324fb150aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 22 Feb 2024 13:31:06 +0100 Subject: [PATCH] fixup! fix: Update children classes of Common to respect copy signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/files_external/lib/Lib/Storage/AmazonS3.php | 4 ++++ apps/files_external/lib/Lib/Storage/SFTP.php | 4 ++++ apps/files_external/lib/Lib/Storage/Swift.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/apps/files_external/lib/Lib/Storage/AmazonS3.php b/apps/files_external/lib/Lib/Storage/AmazonS3.php index 29e4765f2aca7..67438502207f7 100644 --- a/apps/files_external/lib/Lib/Storage/AmazonS3.php +++ b/apps/files_external/lib/Lib/Storage/AmazonS3.php @@ -573,6 +573,10 @@ public function touch($path, $mtime = null) { return true; } + /** + * @param string $source + * @param string $target + */ public function copy($source, $target, bool $preserveMtime = false, ?bool $isFile = null): bool { $source = $this->normalizePath($source); $target = $this->normalizePath($target); diff --git a/apps/files_external/lib/Lib/Storage/SFTP.php b/apps/files_external/lib/Lib/Storage/SFTP.php index d779a550d13e6..746c0fc7ccabe 100644 --- a/apps/files_external/lib/Lib/Storage/SFTP.php +++ b/apps/files_external/lib/Lib/Storage/SFTP.php @@ -519,6 +519,10 @@ public function writeStream(string $path, $stream, int $size = null): int { } } + /** + * @param string $source + * @param string $target + */ public function copy($source, $target, bool $preserveMtime = false): bool { if ($this->is_dir($source) || $this->is_dir($target)) { return parent::copy($source, $target, $preserveMtime); diff --git a/apps/files_external/lib/Lib/Storage/Swift.php b/apps/files_external/lib/Lib/Storage/Swift.php index 6f2e9f1ee1cc8..e5da595ad7d99 100644 --- a/apps/files_external/lib/Lib/Storage/Swift.php +++ b/apps/files_external/lib/Lib/Storage/Swift.php @@ -483,6 +483,10 @@ public function touch($path, $mtime = null) { } } + /** + * @param string $source + * @param string $target + */ public function copy($source, $target, bool $preserveMtime = false): bool { $source = $this->normalizePath($source); $target = $this->normalizePath($target);