Browse Source

fix(S3): Adjust typing for 32bit compatibility

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Ferdinand Thiessen 1 month ago
parent
commit
7880086de8
1 changed files with 6 additions and 3 deletions
  1. 6 3
      lib/private/Files/ObjectStore/S3ConfigTrait.php

+ 6 - 3
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;
 }