summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-12-19 13:54:23 +0100
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>2023-04-01 13:12:05 +0000
commit3044f63743ac88794f71c7338f38c1ef28a05a2b (patch)
tree13d744a0608ab14a019d66641031e8526c38b6d9 /lib/public/Files
parentcb6227e68fce71042f0179379cf9e4563601fb9a (diff)
downloadnextcloud-server-3044f63743ac88794f71c7338f38c1ef28a05a2b.tar.gz
nextcloud-server-3044f63743ac88794f71c7338f38c1ef28a05a2b.zip
Make it clear that file sizes may be float on 32bits
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/Storage.php4
-rw-r--r--lib/public/Files/Storage/IStorage.php4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index ca5276af1e8..c91d47bdcdf 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -227,7 +227,7 @@ interface Storage extends IStorage {
*
* @param string $path
* @param mixed $data
- * @return int|false
+ * @return int|float|false
* @since 6.0.0
*/
public function file_put_contents($path, $data);
@@ -296,7 +296,7 @@ interface Storage extends IStorage {
* see https://www.php.net/manual/en/function.disk-free-space.php
*
* @param string $path
- * @return int|bool
+ * @return int|float|bool
* @since 6.0.0
*/
public function free_space($path);
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 1084eb7c941..7b3b9eb484e 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -224,7 +224,7 @@ interface IStorage {
*
* @param string $path
* @param mixed $data
- * @return int|false
+ * @return int|float|false
* @since 9.0.0
*/
public function file_put_contents($path, $data);
@@ -293,7 +293,7 @@ interface IStorage {
* see https://www.php.net/manual/en/function.free_space.php
*
* @param string $path
- * @return int|bool
+ * @return int|float|bool
* @since 9.0.0
*/
public function free_space($path);