mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 06:37:56 -04:00
Fix quota typing for 32bits after forward port from 25
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
This commit is contained in:
parent
eaeb6b2c85
commit
a0beacde69
2 changed files with 4 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue