From 09a97ad39ce487bb7ee5cf9a79b24ca4b4f7bdaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Mon, 6 Feb 2023 21:27:46 +0100 Subject: [PATCH] Move back typing to phpdoc to keep backward compatibility in OCP 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 | 5 ++++- 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