summaryrefslogtreecommitdiffstats
path: root/apps/files_external
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-01-20 18:02:45 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-02-07 11:23:28 +0100
commitff776a90b133fa113c29511a5a7983a7a1a8b73c (patch)
tree5a0493e0939477a082ae2d1811f94788efcd9a33 /apps/files_external
parent2d8e696c24fef754662ed20f17b5b52091491ac5 (diff)
downloadnextcloud-server-ff776a90b133fa113c29511a5a7983a7a1a8b73c.tar.gz
nextcloud-server-ff776a90b133fa113c29511a5a7983a7a1a8b73c.zip
Strong type filesize related methods to ease 32bits problem findings
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/files_external')
-rw-r--r--apps/files_external/lib/Lib/Storage/FTP.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/FTP.php b/apps/files_external/lib/Lib/Storage/FTP.php
index 284f438fccd..4a6a0a3a011 100644
--- a/apps/files_external/lib/Lib/Storage/FTP.php
+++ b/apps/files_external/lib/Lib/Storage/FTP.php
@@ -140,7 +140,7 @@ class FTP extends Common {
}
}
- public function filesize($path) {
+ public function filesize(string $path): false|int|float {
$result = $this->getConnection()->size($this->buildPath($path));
if ($result === -1) {
return false;