From ed863fb47c1ecdd5c47ade2a5634f14470406790 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Mon, 19 Dec 2022 13:54:23 +0100 Subject: Make it clear that file sizes may be float on 32bits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- lib/public/Files/Storage.php | 4 ++-- lib/public/Files/Storage/IStorage.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/public/Files') 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); -- cgit v1.2.3