aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/public/Files/Storage.php5
-rw-r--r--lib/public/Files/Storage/IStorage.php5
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index 0d60746a55e..ca5276af1e8 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -133,9 +133,12 @@ interface Storage extends IStorage {
/**
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0
+ *
+ * @param string $path
+ * @return false|int|float
* @since 6.0.0
*/
- public function filesize(string $path): false|int|float;
+ public function filesize($path);
/**
* check if a file can be created in $path
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 284cf4e30e7..1084eb7c941 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -130,9 +130,12 @@ interface IStorage {
/**
* see https://www.php.net/manual/en/function.filesize.php
* The result for filesize when called on a folder is required to be 0
+ *
+ * @param string $path
+ * @return false|int|float
* @since 9.0.0
*/
- public function filesize(string $path): false|int|float;
+ public function filesize($path);
/**
* check if a file can be created in $path