diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-23 15:03:56 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:31 +0100 |
commit | cd885b57057b506169faf8ac455f5b1fba811bbf (patch) | |
tree | b7993a9756bed4c697b24d6070d043b3c1cffed1 /lib/public | |
parent | 5c1a0e0307408b9f9031b40beaadaa9f45732c84 (diff) | |
download | nextcloud-server-cd885b57057b506169faf8ac455f5b1fba811bbf.tar.gz nextcloud-server-cd885b57057b506169faf8ac455f5b1fba811bbf.zip |
Type sizes as int|float throughout the code base
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/Files/Node.php | 2 | ||||
-rw-r--r-- | lib/public/Files/SimpleFS/ISimpleFile.php | 2 | ||||
-rw-r--r-- | lib/public/Files/SimpleFS/InMemoryFile.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/public/Files/Node.php b/lib/public/Files/Node.php index b892d8e0a73..b49b4a0f83d 100644 --- a/lib/public/Files/Node.php +++ b/lib/public/Files/Node.php @@ -145,7 +145,7 @@ interface Node extends FileInfo { * Get the size of the file or folder in bytes * * @param bool $includeMounts - * @return int + * @return int|float * @throws InvalidPathException * @throws NotFoundException * @since 6.0.0 diff --git a/lib/public/Files/SimpleFS/ISimpleFile.php b/lib/public/Files/SimpleFS/ISimpleFile.php index 9050fe770b9..e55261497be 100644 --- a/lib/public/Files/SimpleFS/ISimpleFile.php +++ b/lib/public/Files/SimpleFS/ISimpleFile.php @@ -49,7 +49,7 @@ interface ISimpleFile { * * @since 11.0.0 */ - public function getSize(): int; + public function getSize(): int|float; /** * Get the ETag diff --git a/lib/public/Files/SimpleFS/InMemoryFile.php b/lib/public/Files/SimpleFS/InMemoryFile.php index 393449d4f1f..ace9bef465a 100644 --- a/lib/public/Files/SimpleFS/InMemoryFile.php +++ b/lib/public/Files/SimpleFS/InMemoryFile.php @@ -68,7 +68,7 @@ class InMemoryFile implements ISimpleFile { * @inheritdoc * @since 16.0.0 */ - public function getSize(): int { + public function getSize(): int|float { return strlen($this->contents); } |