Move back typing to phpdoc to keep backward compatibility in OCP

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2023-02-06 21:27:46 +01:00
parent c4d90f3e81
commit 09a97ad39c
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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