From 27d8eff181a1a81b505bb96d9c518ca0bfdf9356 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Thu, 19 Sep 2024 15:47:26 +0200 Subject: [PATCH] fix(IStorage): Use false instead of bool intersection type to match implementations Signed-off-by: provokateurin --- lib/public/Files/Storage/IStorage.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php index 2016c273f9103..6da0d8863cf2d 100644 --- a/lib/public/Files/Storage/IStorage.php +++ b/lib/public/Files/Storage/IStorage.php @@ -94,7 +94,7 @@ public function is_file($path); * only the following keys are required in the result: size and mtime * * @param string $path - * @return array|bool + * @return array|false * @since 9.0.0 */ public function stat($path); @@ -103,7 +103,7 @@ public function stat($path); * see https://www.php.net/manual/en/function.filetype.php * * @param string $path - * @return string|bool + * @return string|false * @since 9.0.0 */ public function filetype($path); @@ -113,7 +113,7 @@ public function filetype($path); * The result for filesize when called on a folder is required to be 0 * * @param string $path - * @return false|int|float + * @return int|float|false * @since 9.0.0 */ public function filesize($path); @@ -186,7 +186,7 @@ public function file_exists($path); * see https://www.php.net/manual/en/function.filemtime.php * * @param string $path - * @return int|bool + * @return int|false * @since 9.0.0 */ public function filemtime($path); @@ -244,7 +244,7 @@ public function copy($source, $target); * * @param string $path * @param string $mode - * @return resource|bool + * @return resource|false * @since 9.0.0 */ public function fopen($path, $mode); @@ -254,7 +254,7 @@ public function fopen($path, $mode); * The mimetype for a folder is required to be "httpd/unix-directory" * * @param string $path - * @return string|bool + * @return string|false * @since 9.0.0 */ public function getMimeType($path); @@ -265,16 +265,16 @@ public function getMimeType($path); * @param string $type * @param string $path * @param bool $raw - * @return string|bool + * @return string|false * @since 9.0.0 */ public function hash($type, $path, $raw = false); /** - * see https://www.php.net/manual/en/function.free_space.php + * see https://www.php.net/manual/en/function.disk-free-space.php * * @param string $path - * @return int|float|bool + * @return int|float|false * @since 9.0.0 */ public function free_space($path); @@ -352,7 +352,7 @@ public function instanceOfStorage($class); * For now the returned array can hold the parameter url - in future more attributes might follow. * * @param string $path - * @return array|bool + * @return array|false * @since 9.0.0 */ public function getDirectDownload($path);