From 7880086de84d112e079039d05df615e7fd7301d3 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 25 Mar 2024 20:59:40 +0100 Subject: [PATCH] fix(S3): Adjust typing for 32bit compatibility Signed-off-by: Ferdinand Thiessen --- lib/private/Files/ObjectStore/S3ConfigTrait.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/private/Files/ObjectStore/S3ConfigTrait.php b/lib/private/Files/ObjectStore/S3ConfigTrait.php index 7f204507c22fc..a5a8d9c350605 100644 --- a/lib/private/Files/ObjectStore/S3ConfigTrait.php +++ b/lib/private/Files/ObjectStore/S3ConfigTrait.php @@ -43,11 +43,14 @@ trait S3ConfigTrait { protected string $storageClass; - protected int $uploadPartSize; + /** @var int Part size in bytes (float is added for 32bit support) */ + protected int|float $uploadPartSize; - private int $putSizeLimit; + /** @var int Limit on PUT in bytes (float is added for 32bit support) */ + private int|float $putSizeLimit; - private int $copySizeLimit; + /** @var int Limit on COPY in bytes (float is added for 32bit support) */ + private int|float $copySizeLimit; private bool $useMultipartCopy = true; }