diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-12-19 14:03:09 +0100 |
---|---|---|
committer | MichaIng <micha@dietpi.com> | 2023-04-01 14:20:24 +0200 |
commit | 1740311283b75d7bda3c92c5ef6d05096485bb1d (patch) | |
tree | d5be4ba6efdb56aebd4108607ec9a72dc61c8d43 /lib/private/Files/Storage/Wrapper | |
parent | ed863fb47c1ecdd5c47ade2a5634f14470406790 (diff) | |
download | nextcloud-server-1740311283b75d7bda3c92c5ef6d05096485bb1d.tar.gz nextcloud-server-1740311283b75d7bda3c92c5ef6d05096485bb1d.zip |
Adapt types of subclasses
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Files/Storage/Wrapper')
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Encoding.php | 4 | ||||
-rw-r--r-- | lib/private/Files/Storage/Wrapper/Jail.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Encoding.php b/lib/private/Files/Storage/Wrapper/Encoding.php index 6aba839d26d..d6006f746ad 100644 --- a/lib/private/Files/Storage/Wrapper/Encoding.php +++ b/lib/private/Files/Storage/Wrapper/Encoding.php @@ -311,7 +311,7 @@ class Encoding extends Wrapper { * * @param string $path * @param mixed $data - * @return int|false + * @return int|float|false */ public function file_put_contents($path, $data) { return $this->storage->file_put_contents($this->findPathToUse($path), $data); @@ -396,7 +396,7 @@ class Encoding extends Wrapper { * see https://www.php.net/manual/en/function.free_space.php * * @param string $path - * @return int|bool + * @return int|float|bool */ public function free_space($path) { return $this->storage->free_space($this->findPathToUse($path)); diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php index 4501c96d631..e21a2cba244 100644 --- a/lib/private/Files/Storage/Wrapper/Jail.php +++ b/lib/private/Files/Storage/Wrapper/Jail.php @@ -259,7 +259,7 @@ class Jail extends Wrapper { * * @param string $path * @param mixed $data - * @return int|false + * @return int|float|false */ public function file_put_contents($path, $data) { return $this->getWrapperStorage()->file_put_contents($this->getUnjailedPath($path), $data); @@ -335,7 +335,7 @@ class Jail extends Wrapper { * see https://www.php.net/manual/en/function.free_space.php * * @param string $path - * @return int|bool + * @return int|float|bool */ public function free_space($path) { return $this->getWrapperStorage()->free_space($this->getUnjailedPath($path)); |