diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-19 18:19:34 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-26 18:13:03 +0200 |
commit | 7cdccd058f98a5e4164fc314f06f62fd8dfcd73c (patch) | |
tree | 948927053d2d1b06f9fa27e7f2c897ac922181e1 /lib/private/Files/Storage/CommonTest.php | |
parent | 256a8d8903ef3a81a425f417c0eb626f42036a25 (diff) | |
download | nextcloud-server-7cdccd058f98a5e4164fc314f06f62fd8dfcd73c.tar.gz nextcloud-server-7cdccd058f98a5e4164fc314f06f62fd8dfcd73c.zip |
fix(Storage): Fix IStorage return types
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/Files/Storage/CommonTest.php')
-rw-r--r-- | lib/private/Files/Storage/CommonTest.php | 22 |
1 files changed, 11 insertions, 11 deletions
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); } } |