diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-06 21:27:46 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-02-07 11:23:35 +0100 |
commit | 09a97ad39ce487bb7ee5cf9a79b24ca4b4f7bdaa (patch) | |
tree | 028c099195c1e8541acb45bd15d4a72cfef22602 /lib | |
parent | c4d90f3e810bfc35756447e44aa9479d036779ac (diff) | |
download | nextcloud-server-09a97ad39ce487bb7ee5cf9a79b24ca4b4f7bdaa.tar.gz nextcloud-server-09a97ad39ce487bb7ee5cf9a79b24ca4b4f7bdaa.zip |
Move back typing to phpdoc to keep backward compatibility in OCP
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/Files/Storage.php | 5 | ||||
-rw-r--r-- | lib/public/Files/Storage/IStorage.php | 5 |
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 |