From 7cdccd058f98a5e4164fc314f06f62fd8dfcd73c Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 19 Sep 2024 18:19:34 +0200 Subject: fix(Storage): Fix IStorage return types Signed-off-by: provokateurin --- lib/private/Files/Storage/CommonTest.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lib/private/Files/Storage/CommonTest.php') diff --git a/lib/private/Files/Storage/CommonTest.php b/lib/private/Files/Storage/CommonTest.php index efdd3634578..1145fa2501d 100644 --- a/lib/private/Files/Storage/CommonTest.php +++ b/lib/private/Files/Storage/CommonTest.php @@ -18,43 +18,43 @@ class CommonTest extends \OC\Files\Storage\Common { $this->storage = new \OC\Files\Storage\Local($params); } - public function getId() { + public function getId(): string { return 'test::' . $this->storage->getId(); } - public function mkdir($path) { + public function mkdir($path): bool { return $this->storage->mkdir($path); } - public function rmdir($path) { + public function rmdir($path): bool { return $this->storage->rmdir($path); } public function opendir($path) { return $this->storage->opendir($path); } - public function stat($path) { + public function stat($path): array|false { return $this->storage->stat($path); } - public function filetype($path) { + public function filetype($path): string|false { return @$this->storage->filetype($path); } - public function isReadable($path) { + public function isReadable($path): bool { return $this->storage->isReadable($path); } - public function isUpdatable($path) { + public function isUpdatable($path): bool { return $this->storage->isUpdatable($path); } - public function file_exists($path) { + public function file_exists($path): bool { return $this->storage->file_exists($path); } - public function unlink($path) { + public function unlink($path): bool { return $this->storage->unlink($path); } public function fopen($path, $mode) { return $this->storage->fopen($path, $mode); } - public function free_space($path) { + public function free_space($path): int|float|false { return $this->storage->free_space($path); } - public function touch($path, $mtime = null) { + public function touch($path, $mtime = null): bool { return $this->storage->touch($path, $mtime); } } -- cgit v1.2.3