diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2023-03-30 10:30:12 +0200 |
---|---|---|
committer | backportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com> | 2023-04-01 13:12:05 +0000 |
commit | a0beacde69245d409604a7d0722286d8290d6563 (patch) | |
tree | 41e1daa7edb9a16158c18ee27b3fac914b844c58 /lib | |
parent | eaeb6b2c85f74322ce7f24f6ea2f41747e3135a7 (diff) | |
download | nextcloud-server-a0beacde69245d409604a7d0722286d8290d6563.tar.gz nextcloud-server-a0beacde69245d409604a7d0722286d8290d6563.zip |
Fix quota typing for 32bits after forward port from 25
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Quota.php | 4 | ||||
-rwxr-xr-x | lib/private/LargeFileHelper.php | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Quota.php b/lib/private/Files/Storage/Wrapper/Quota.php index 5b702890675..cfb2c455a2c 100644 --- a/lib/private/Files/Storage/Wrapper/Quota.php +++ b/lib/private/Files/Storage/Wrapper/Quota.php @@ -42,7 +42,7 @@ class Quota extends Wrapper { /** @var callable|null */ protected $quotaCallback; /** @var int|float|null int on 64bits, float on 32bits for bigint */ - protected $quota; + protected int|float|null $quota; protected string $sizeRoot; private SystemConfig $config; @@ -60,7 +60,7 @@ class Quota extends Wrapper { /** * @return int|float quota value */ - public function getQuota() { + public function getQuota(): int|float { if ($this->quota === null) { $quotaCallback = $this->quotaCallback; if ($quotaCallback === null) { diff --git a/lib/private/LargeFileHelper.php b/lib/private/LargeFileHelper.php index 09bb959cdcf..c8d6ba42eb5 100755 --- a/lib/private/LargeFileHelper.php +++ b/lib/private/LargeFileHelper.php @@ -95,10 +95,9 @@ class LargeFileHelper { * * @param string $filename Path to the file. * - * @return int|float Number of bytes as number (float or int) or - * null on failure. + * @return int|float Number of bytes as number (float or int) */ - public function getFileSize(string $filename): null|int|float { + public function getFileSize(string $filename): int|float { $fileSize = $this->getFileSizeViaCurl($filename); if (!is_null($fileSize)) { return $fileSize; |