aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/CommonTest.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-10-01 16:12:30 +0200
committerprovokateurin <kate@provokateurin.de>2024-10-07 15:00:05 +0200
commitf28e74b7a8b3df11ba1f2e4a18492b8158528cdf (patch)
tree90ff25fb002ca23f256bf9d6cf380bd46e23396d /lib/private/Files/Storage/CommonTest.php
parent414430980a9efa3ced924d092ef50d336b2b7dde (diff)
downloadnextcloud-server-f28e74b7a8b3df11ba1f2e4a18492b8158528cdf.tar.gz
nextcloud-server-f28e74b7a8b3df11ba1f2e4a18492b8158528cdf.zip
refactor(Storage): Make all parameter types strong 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.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/private/Files/Storage/CommonTest.php b/lib/private/Files/Storage/CommonTest.php
index 1145fa2501d..bf61dfaec86 100644
--- a/lib/private/Files/Storage/CommonTest.php
+++ b/lib/private/Files/Storage/CommonTest.php
@@ -21,40 +21,40 @@ class CommonTest extends \OC\Files\Storage\Common {
public function getId(): string {
return 'test::' . $this->storage->getId();
}
- public function mkdir($path): bool {
+ public function mkdir(string $path): bool {
return $this->storage->mkdir($path);
}
- public function rmdir($path): bool {
+ public function rmdir(string $path): bool {
return $this->storage->rmdir($path);
}
- public function opendir($path) {
+ public function opendir(string $path) {
return $this->storage->opendir($path);
}
- public function stat($path): array|false {
+ public function stat(string $path): array|false {
return $this->storage->stat($path);
}
- public function filetype($path): string|false {
+ public function filetype(string $path): string|false {
return @$this->storage->filetype($path);
}
- public function isReadable($path): bool {
+ public function isReadable(string $path): bool {
return $this->storage->isReadable($path);
}
- public function isUpdatable($path): bool {
+ public function isUpdatable(string $path): bool {
return $this->storage->isUpdatable($path);
}
- public function file_exists($path): bool {
+ public function file_exists(string $path): bool {
return $this->storage->file_exists($path);
}
- public function unlink($path): bool {
+ public function unlink(string $path): bool {
return $this->storage->unlink($path);
}
- public function fopen($path, $mode) {
+ public function fopen(string $path, string $mode) {
return $this->storage->fopen($path, $mode);
}
- public function free_space($path): int|float|false {
+ public function free_space(string $path): int|float|false {
return $this->storage->free_space($path);
}
- public function touch($path, $mtime = null): bool {
+ public function touch(string $path, ?int $mtime = null): bool {
return $this->storage->touch($path, $mtime);
}
}